Image decoding method, image coding method, image decoding apparatus, image coding apparatus, and image coding and decoding apparatus

ABSTRACT

An image decoding method of decoding, on a per-block basis, a coded image included in a bitstream, includes: performing arithmetic decoding on a current block to be decoded; determining whether or not the current block is at the end of a slice; determining, when it is determined that the current block is not at the end of the slice, whether or not the current block is at the end of a sub-stream which is a structural unit of the image that is different from the slice; and performing arithmetic decoding on a sub-last bit and performing arithmetic decoding termination, when it is determined that the current block is at the end of the sub-stream.

FIELD

One or more exemplary embodiments disclosed herein relate generally tomoving picture coding methods and moving picture decoding methods, andin particular, relate to an arithmetic coding method and an arithmeticdecoding method.

BACKGROUND

The high efficiency video coding (HEVC) standard, which is anext-generation image coding standard, has been studied in various waysto increase its coding efficiency (see Non Patent Literature (NPL) 1).There are conventional international telecommunication uniontelecommunication standardization sector (ITU-T) standards typified byH.26x, and ISO/IEC standards typified by MPEG-x. The latest and mostadvanced image coding standard has been currently studied as a standardnext to a standard typified by H.264/AVC or MPEG-4 AVC (see NPL 2).

In the HEVC standard, arithmetic coding referred to as context-basedadaptive binary arithmetic coding (CABAC) is used as entropy coding.

CITATION LIST Non Patent Literature

-   [Non Patent Literature 1] Joint Collaborative Team on Video Coding    (JCT-VC) of ITU-T SG16 WP3 and ISO/IEC JTC1/SC29/WG11 10th Meeting:    Stockholm, SE, 11-20 Jul. 2012, JCTVC-J1003_d7, “High efficiency    video coding (HEVC) text specification draft 8”-   [Non Patent Literature 2] ITU-T Recommendation H.264 “Advanced video    coding for generic audiovisual services”, March, 2010

SUMMARY Technical Problem

However, a conventional image decoding method and a conventional imagecoding method have a problem of complexity in the configuration forperforming processing according to the methods.

In view of this, one non-limiting and exemplary embodiment provides animage decoding method, an image coding method and others which arecapable of decoding and coding images with simple configuration.

Solution to Problem

An image decoding method according to an aspect of the presentdisclosure is an image decoding method of decoding, on a per-blockbasis, a coded image included in a bitstream. The image decoding methodincludes: performing arithmetic decoding on a current block to bedecoded; determining whether or not the current block is at an end of aslice; determining whether or not the current block is at an end of asub-stream when it is determined that the current block is not at theend of the slice, the sub-stream being a structural unit of the imagethat is different from the slice; and performing arithmetic decoding ona sub-last bit and performing arithmetic decoding termination as firsttermination, when it is determined that the current block is at the endof the sub-stream.

These general and specific aspects may be implemented using a system, amethod, an integrated circuit, a computer program, or acomputer-readable recording medium such as a compact disc read onlymemory (CD-ROM), or any combination of systems, methods, integratedcircuits, computer programs, or computer-readable recording media.

Additional benefits and advantages of the disclosed embodiments will beapparent from the Specification and Drawings. The benefits and/oradvantages may be individually obtained by the various embodiments andfeatures of the Specification and Drawings, which need not all beprovided in order to obtain one or more of such benefits and/oradvantages.

Advantageous Effects

An image decoding method and an image coding method according to thepresent disclosure simplify configuration for decoding or coding images.

BRIEF DESCRIPTION OF DRAWINGS

These and other objects, advantages and features of the disclosure willbecome apparent from the following description thereof taken inconjunction with the accompanying drawings that illustrate a specificembodiment of the present disclosure.

FIG. 1 is a block diagram showing a configuration of an entropy decodingunit.

FIG. 2 is a flowchart of processing performed by the entropy decodingunit.

FIG. 3A is a diagram showing slice syntax.

FIG. 3B is a diagram showing bitstream syntax in a slice.

FIG. 4 is a block diagram showing a configuration of an entropy codingunit.

FIG. 5 is a flowchart of processing performed by the entropy codingunit.

FIG. 6 is a block diagram showing an example of a configuration of animage decoding apparatus according to Embodiment 1.

FIG. 7 is a block diagram showing an example of a configuration of anentropy decoding unit according to Embodiment 1.

FIG. 8 is a flowchart of an example of processing performed by theentropy decoding unit according to Embodiment 1.

FIG. 9 is a diagram showing an example of slice syntax according toEmbodiment 1.

FIG. 10 is a diagram showing an example of bitstream syntax according toVariation of Embodiment 1.

FIG. 11 is a block diagram showing an example of a configuration of animage coding apparatus according to Embodiment 2.

FIG. 12 is a block diagram showing an example of a configuration of anentropy coding unit according to Embodiment 2.

FIG. 13 is a flowchart of an example of processing performed by theentropy coding unit according to Embodiment 2.

FIG. 14A is a flowchart of an image decoding method according to oneembodiment of the present disclosure.

FIG. 14B is a diagram showing a configuration of an image decodingapparatus according to one embodiment of the present disclosure.

FIG. 15A is a flowchart of an image coding method according to oneembodiment of the present disclosure.

FIG. 15B is a diagram showing a configuration of an image codingapparatus according to one embodiment of the present disclosure.

FIG. 16 is an overall configuration diagram of a content providingsystem that provides content distribution services.

FIG. 17 shows an overall configuration of a digital broadcasting system.

FIG. 18 shows a block diagram illustrating an example of a configurationof a television.

FIG. 19 shows a block diagram illustrating an example of a configurationof an information reproducing/recording unit that reads and writesinformation from and on a recording medium that is an optical disk.

FIG. 20 shows an example of a configuration of a recording medium thatis an optical disk.

FIG. 21A shows an example of a cellular phone.

FIG. 21B is a block diagram showing an example of a configuration of acellular phone.

FIG. 22 illustrates a structure of the multiplexed data.

FIG. 23 schematically shows how each stream is multiplexed inmultiplexed data.

FIG. 24 shows how a video stream is stored in a stream of PES packets inmore detail.

FIG. 25 shows a structure of TS packets and source packets in themultiplexed data.

FIG. 26 shows a data structure of a PMT.

FIG. 27 shows an internal structure of multiplexed data information.

FIG. 28 shows an internal structure of stream attribute information.

FIG. 29 shows steps for identifying video data.

FIG. 30 shows an example of a configuration of an integrated circuit forimplementing the moving picture coding method and the moving picturedecoding method according to each of embodiments.

FIG. 31 shows a configuration for switching between driving frequencies.

FIG. 32 shows steps for identifying video data and switching betweendriving frequencies.

FIG. 33 shows an example of a look-up table in which video datastandards are associated with driving frequencies.

FIG. 34A is a diagram showing an example of a configuration for sharinga module of a signal processing unit.

FIG. 34B is a diagram showing another example of a configuration forsharing a module of the signal processing unit.

DESCRIPTION OF EMBODIMENTS

(Underlying Knowledge Forming Basis of the Present Disclosure)

In relation to the conventional image decoding method and image codingmethod, the inventors have found the problem indicated below.

In arithmetic coding according to CABAC, ctxIdx, which is an index of aprobability model referred to as context, and binVal, which is a binarysignal to be coded, are input, and an output code string is determinedthrough updates of codlRange, codlLow, firstBitFlag, and BitsOutstandingwhich are information indicating internal probability states.

For the initial values of information of the internal probability state,codlRange=510, codlLow=0, firstBitFlag=1, and BitsOutstanding=0 are set.

In contrast, in arithmetic decoding corresponding to CABAC, ctxIdx whichis an index of the probability model, ctxIdxTable which is associatedinformation, and bypassFlag which indicates whether bypass decoding hasbeen applied to a current code string, are input, and a decoded binarysignal bin is output through updates of codlRange and codIOffset whichare information indicating the internal probability states.

As described above, in arithmetic coding and decoding in CABAC, codingor decoding is performed through updates of the internal probabilitystates. Furthermore, when CABAC processing starts at a point other thanthe beginning in the processing, there are cases where the internalprobability state of the same structural unit (a unit forming an image,and also referred to as a processing unit) may differ in coding anddecoding. This hinders proper coding or decoding of images. Hence,termination is performed in coding and decoding.

In a method disclosed in NPL 1, in coding, arithmetic coding isperformed on an end-of-slice flag (end_of_slice) indicating a value of1, the end-of-slice flag is embedded in the end of a slice, andtermination is performed. In decoding, arithmetic decoding is performedon the end-of-slice flag, and termination is performed. Accordingly,even when CABAC (arithmetic coding or arithmetic decoding) starts at apoint other than the beginning in the processing, if the startingposition is the beginning of a slice, it is possible to have the sameinternal probability state in coding and decoding.

However, the HEVC standard uses, other than slices, structural unitsreferred to as tiles for parallel processing, and structural units(hereinafter, referred to as CTU lines) for allowing parallel processingreferred to as wavefront parallel processing (WPP). In the HEVCstandard, termination is not performed on the tiles and CTU lines.

FIG. 1 is a block diagram showing a configuration of an entropy decodingunit.

An entropy decoding unit 800 performs CABAC arithmetic decoding, andincludes a CTU decoding unit 801, an end-of-slice determining unit 802,an end-of-sub-stream determining unit 803, a beginning-of-byte searchingunit 804, and a termination unit 805.

FIG. 2 is a flowchart of processing performed by the entropy decodingunit 800.

First, the CTU decoding unit 801 in the entropy decoding unit 800performs arithmetic decoding on a coding tree unit (CTU) in a bitstreamBS (Step S801). A CTU refers to a block forming a picture. Subsequently,the end-of-slice determining unit 802 performs arithmetic decoding on anend-of-slice flag (end_of_slice_flag) (Step S802). The end-of-slicedetermining unit 802 then determines whether or not the decodedend-of-slice flag (end_of_slice_flag) indicates 0 (Step S803). When itis determined that the end-of-slice flag does not indicate 0 (No in StepS803), the termination unit 805 performs termination of arithmeticdecoding (arithmetic decoding termination) (Step S804). On the otherhand, when it is determined that the end-of-slice flag indicates 0 (Yesin Step S803), the end-of-sub-stream determining unit 803 determineswhether or not the CTU which was arithmetically decoded immediatelybefore is at the end of a sub-stream (Step S805). A sub-stream refers tothe tile or CTU line described above. The CTU line is a structural unitincluding horizontally aligned CTUs.

Here, when it is determined that the CTU is at the end of a sub-stream(Yes in Step S805), the beginning-of-byte searching unit 804 searchesfor the beginning of a byte (beginning-of-byte search) (Step S806). Thisbeginning-of-byte search refers to processing of searching a bitstreamfor the beginning of a byte unit while skipping bit string. On the otherhand, when it is determined that the CTU is not at the end of asub-stream (No in Step S805) or after Step S806, the entropy decodingunit 800 repeats processing from Step 801 on a next CTU.

FIG. 3A is a diagram showing slice syntax.

The slice includes data 851 indicating a coded CTU (coding_tree_unit( ))and an arithmetically coded end-of-slice flag 852 (end_of_slice_flag)for determining the end of a slice. The slice also includes apredetermined bit string 854 (byte_alignment( )) when a condition 853 issatisfied. The condition 853 is a condition that the CTU indicated bythe data 851 is at the end of a sub-stream.

FIG. 3B is a diagram showing syntax of the bit string 854.

The bit string 854 includes a bit 855 indicating a value of 1(bit_equal_to_one) and as many bits 856 indicating values of 0(bit_equal_to_zero) as are necessary. The bit string 854 is included ina bitstream so that the number of bits of the coded sub-stream is equalto an integral multiple of a byte unit. The bit string 854 has not beenarithmetically coded, and is a code indicating a value of 0 or 1. In thebeginning-of-byte search, the bit string 854 is skipped.

FIG. 4 is a block diagram showing a configuration of an entropy codingunit.

An entropy coding unit 900 performs CABAC arithmetic coding, andincludes a CTU coding unit 901, an end-of-slice coding unit 902, anend-of-sub-stream determining unit 903, a byte alignment unit 904, and atermination unit 905.

FIG. 5 is a flowchart of processing performed by the entropy coding unit900.

First, the CTU coding unit 901 in the entropy coding unit 900 performsarithmetic coding on a CTU in a current signal to be coded (Step S901).Subsequently, the end-of-slice determining unit 902 performs arithmeticcoding on an end-of-slice flag (end_of_slice_flag) (Step S902). Theend-of-slice coding unit 902 then determines whether or not theend-of-slice flag (end_of_slice_flag) indicates 0 (Step S903). Here,when it is determined that the end-of-slice flag does not indicate 0 (Noin Step S903), the termination unit 905 performs termination ofarithmetic coding (arithmetic coding termination) (Step S904). On theother hand, when it is determined that the end-of-slice flag indicates 0(Yes in Step S903), the end-of-sub-stream determining unit 903determines whether or not the CTU which was arithmetically codedimmediately before is at the end of a sub-stream (Step S905).

Here, when it is determined that the CTU is at the end of a sub-stream(Yes in S905), the byte alignment unit 904 performs byte alignment (StepS906). When it is determined that the CTU is not at the end of asub-stream (No in Step S905) or after Step S906, the entropy coding unit900 repeats processing from S901 on a next CTU.

In the image decoding method and the image coding method describedabove, termination is not performed after performing arithmetic decodingor arithmetic coding on the CTU that is at the end of a sub-stream.Hence, for example, when a plurality of sub-streams are processed inparallel, processing starts at a point other than the beginning in abitstream BS or a signal to be coded. As a result, the internalprobability state of CABAC corresponding to a given sub-stream maydiffer in coding and decoding. More specifically, proper image codingand decoding cannot be performed.

In order to solve such a problem, each slice may be divided into smallerunits without using sub-streams. However, in such a case, codingefficiency decreases, which is another problem.

Another method to solve the problem is to simply perform terminationafter performing arithmetic decoding or arithmetic coding on a CTU thatis at the end of a sub-stream. However, in this case, an additionalprocessing unit is necessary for performing termination on the end ofthe sub-stream, which results in complicated configuration.

In order to solve such problems, an image decoding method according toan aspect of the present disclosure is an image decoding method ofdecoding, on a per-block basis, a coded image included in a bitstream.The image decoding method includes: performing arithmetic decoding on acurrent block to be decoded; determining whether or not the currentblock is at an end of a slice; determining whether or not the currentblock is at an end of a sub-stream when it is determined that thecurrent block is not at the end of the slice, the sub-stream being astructural unit of the image that is different from the slice; andperforming arithmetic decoding on a sub-last bit and performingarithmetic decoding termination as first termination, when it isdetermined that the current block is at the end of the sub-stream.

With this, even when an arithmetically decoded block is not at the endof a slice, if the block is at the end of a sub-stream, arithmeticdecoding termination is performed. This allows a plurality ofsub-streams in a bitstream to be properly decoded in parallel.Furthermore, it is possible to properly decode a bitstream coded withless decrease in efficiency, by using slices and sub-streams.Furthermore, processing, including arithmetic decoding of the sub-lastbit and termination, is performed on the end of a sub-stream. Hence,when processing, including arithmetic decoding of a flag andtermination, is performed on the end of a slice, common processing canbe performed on the end of a sub-stream and the end of a slice. Morespecifically, since an additional processing unit is not necessary forprocessing performed on the end of a sub-stream, images can be decodedwith simple configuration.

Furthermore, it may be that the image decoding method further includesperforming arithmetic decoding termination as second termination when itis determined that the current block is at the end of the slice, andthat when the first termination is performed, same processing as thesecond termination is performed.

With this, the termination performed on the end of a slice is the sameas the termination performed on the end of a sub-stream. This allowssimpler configuration for decoding images.

Furthermore, it may be that the image decoding method further includesperforming arithmetic decoding on an end-of-slice flag indicatingwhether or not the current block is at the end of the slice, and that inthe determining of whether or not the current block is at an end of aslice, it is determined that the current block is at the end of theslice when the end-of-slice flag on which arithmetic decoding has beenperformed indicates a predetermined value, and in the performing ofarithmetic decoding on a sub-last bit, a same value as the predeterminedvalue is restored by the arithmetic decoding. For example, it may bethat in the performing of arithmetic decoding on a sub-last bit, a valueof 1 is restored by the arithmetic decoding.

Accordingly, the termination performed on the end of a slice and thetermination performed on the end of a sub-stream are executed when thesame value is obtained in the arithmetic decoding of 1-bit. Hence, moreprocessing can be shared in processing performed on the end of asub-stream and the end of a slice.

Furthermore, it may be that the image decoding method further includesskipping a bit string after performing the first termination, the bitstring being written into the bitstream so that a bit length includingthe sub-stream and the sub-last bit is equal to a multiple ofpredetermined N bits.

With this, for example, beginning-of-byte search is performed, allowingproper decoding of each byte unit.

Furthermore, it may be that in the performing of arithmetic decoding ona sub-last bit, arithmetic decoding is performed on a first bit of thebit string, as the sub-last bit.

Accordingly, it is not necessary to include an additional bit in abitstream as a sub-last bit; and thus, it is possible to properly decodea bitstream coded with less decrease in efficiency.

Furthermore, in order to solve the problems, an image coding methodaccording to one aspect of the present disclosure is an image codingmethod of coding an image on a per-block basis to generate a bitstream.The image coding method includes: performing arithmetic coding on acurrent block to be coded; determining whether or not the current blockis at an end of a slice; determining whether or not the current block isat an end of a sub-stream when it is determined that the current blockis not at the end of the slice, the sub-stream being a structural unitof the image that is different from the slice; and performing arithmeticcoding on a sub-last bit and performing arithmetic coding termination asfirst termination, when it is determined that the current block is atthe end of the sub-stream.

With this, even if an arithmetically coded block is not at the end of aslice, if the block is at the end of a sub-stream, arithmetic codingtermination is performed. This allows a plurality of sub-streams in abitstream to be properly coded in parallel. Furthermore, it is possibleto suppress a decrease in coding efficiency by using slices andsub-streams. Furthermore, processing, including arithmetic coding of thesub-last bit and termination, is performed on the end of the sub-stream.Hence, when processing, including arithmetic coding of a flag andtermination, is performed on the end of a slice, common processing canbe performed on the end of the sub-stream and the end of the slice. Morespecifically, since an additional processing unit is not necessary forprocessing performed on the end of a sub-stream, images can be codedwith simple configuration.

Furthermore, it may be that the image coding method further includesperforming arithmetic coding termination as second termination when itis determined that the current block is at the end of the slice, andthat when the first termination is performed, same processing as thesecond termination is performed.

With this, the termination performed on the end of a slice is the sameas the termination performed on the end of a sub-stream. This allowssimpler configuration for coding images.

Furthermore, it may be that the image coding method further includes:performing arithmetic coding on an end-of-slice flag indicating whetheror not the current block is at the end of the slice, and that in thedetermining of whether the current block is at an end of a slice, it isdetermined that the current block is at the end of the slice when theend-of-slice flag indicates a predetermined value, and in the performingof arithmetic decoding on a sub-last bit, arithmetic coding is performedon the sub-last bit indicating a same value as the predetermined value.For example, it may be that in the performing of arithmetic coding on asub-last bit, arithmetic coding is performed on the sub-last bitindicating a value of 1.

Accordingly, the termination performed on the end of a slice and thetermination performed on the end of a sub-stream are executed whenarithmetic coding is performed on 1-bit indicating the same value.Hence, more processing can be shared in processing performed on the endof the sub-stream and the end of the slice.

Furthermore, it may be that the image coding method further includeswriting a bit string into the bitstream after performing the firsttermination so that a bit length including the sub-stream and thesub-last bit is equal to a multiple of predetermined N bits.

With this, for example, it is possible to properly perform coding ofeach byte unit.

Furthermore, it may be that in the performing of arithmetic coding on asub-last bit, arithmetic coding is performed on a first bit of the bitstring, as the sub-last bit.

Accordingly, it is not necessary to include an additional bit in abitstream as a sub-last bit; and thus, it is possible to suppress adecrease in coding efficiency.

These general and specific aspects may be implemented using a system, amethod, an integrated circuit, a computer program, or acomputer-readable recording medium such as a CD-ROM, or any combinationof systems, methods, integrated circuits, computer programs, orcomputer-readable recording media.

Hereinafter, embodiments are specifically described with reference tothe Drawings.

Each of the embodiments described below shows a general or specificexample. The numerical values, shapes, materials, structural elements,the arrangement and connection of the structural elements, steps, theprocessing order of the steps etc. shown in the following embodimentsare mere examples, and therefore do not limit the scope of the Claims.Therefore, among the structural elements in the following embodiments,structural elements not recited in any one of the independent claims aredescribed as arbitrary structural elements. In the followingdescription, the term “coding” may refer to “encoding”.

Embodiment 1

FIG. 6 is a block diagram showing an example of a configuration of animage decoding apparatus according to Embodiment 1.

An image decoding apparatus 100 according to Embodiment 1 decodes abitstream BS that is compression-coded image data. For example, theimage decoding apparatus 100 decodes the bitstream BS on a per-blockbasis. More specifically, the image decoding apparatus 100 restoresimage data by performing variable-length decoding, inverse quantization,inverse transform and others on a current block to be coded.

As shown in FIG. 6, the image decoding apparatus 100 includes an entropydecoding unit 110, an inverse quantization and inverse transform unit120, an adder 125, a loop filter 130, a memory 140, an intra predictionunit 150, a motion compensation unit 160, and an intra/inter selectorswitch 170.

The entropy decoding unit 110 performs variable-length decoding on abitstream BS, and restores, per block, quantized coefficients in theblock. The entropy decoding unit 110 obtains motion data from thebitstream BS, and outputs the obtained motion data to the motioncompensation unit 160.

The inverse quantization and inverse transform unit 120 restorestransform coefficients by performing inverse quantization on thequantized coefficients restored by the entropy decoding unit 110. Theinverse quantization and inverse transform unit 120 performs inversetransform (inverse frequency transform) on the restored transformcoefficients. Accordingly, a prediction error signal corresponding to adifferent one of blocks in the bitstream BS is restored.

The adder 125 generates a decoded image by adding the restoredprediction error signal and a prediction signal.

The loop filter 130 performs loop filtering, such as deblockingfiltering, on the generated decoded image. The decoded image on whichloop filtering has been performed is output as a decoded signal.

The memory 140 is a memory for storing reference images to be used formotion compensation. More specifically, the memory 140 stores, as areference image, a decoded image on which loop filtering has beenperformed.

The intra prediction unit 150 generates a prediction signal (intraprediction signal) by performing intra prediction according to an intraprediction mode. More specifically, the intra prediction unit 150 refersto images neighboring a current block to be decoded in the decoded imagegenerated by the adder 125, to perform intra prediction on the currentblock. Accordingly, the intra prediction unit 150 generates an intraprediction signal.

The motion compensation unit 160 generates a prediction signal (interprediction signal) of the current block by performing motioncompensation based on the motion data output from the entropy decodingunit 110.

The intra/inter selector switch 170 selects the intra prediction signalor inter prediction signal, and outputs the selected signal to the adder125 as a prediction signal.

With the above configuration, the image decoding apparatus 100 accordingto Embodiment 1 decodes compression-coded image data.

Here, the entropy decoding unit 110 in the image decoding apparatus 100according to Embodiment 1 performs variable-length decoding on abitstream BS by performing arithmetic decoding on the bitstream BS.

In arithmetic decoding performed by the entropy decoding unit 110according to Embodiment 1, the bitstream BS can be properly decoded bothin parallel processing and serial processing. Hence, when sub-streamsare used and high-speed processing is necessary in the HEVC,implementation of arithmetic decoding according to Embodiment 1 ishighly beneficial.

Hereinafter, a detailed description is given of arithmetic decodingperformed by the entropy decoding unit 110.

FIG. 7 is a block diagram showing an example of a configuration of theentropy decoding unit 110 according to Embodiment 1. The entropydecoding unit 110 according to Embodiment 1 includes a CTU decoding unit111, an end-of-slice determining unit 112, an end-of-sub-streamdetermining unit 113, a sub-stream termination unit 116, abeginning-of-byte searching unit 114, and a termination unit 115. Theentropy decoding unit 110 restores, from a bitstream BS, decoded dataincluding, for example, quantized coefficients, and a slice processingtermination signal.

FIG. 8 is a flowchart of an example of processing performed by theentropy decoding unit 110 according to Embodiment 1.

First, the CTU decoding unit 111 performs arithmetic decoding on a CTU(coding_tree_unit( )) in a bitstream BS, according to a predeterminedmethod (Step S101). Here, a CTU refers to a predetermined coding unit ina picture, and is, for example, a block including 16×16 pixels, 32×32pixels, or 64×64 pixels. A coded CTU included in the bitstream BS is aset of information including, for example, information on a method ofgenerating a prediction image (prediction signal) of the CTU andinformation on a signal (quantized coefficients) obtained bytransforming and quantizing a prediction error signal that is adifference between the prediction signal and an original image.

Subsequently, the end-of-slice determining unit 112 performs arithmeticdecoding on an end-of-slice flag (end_of_slice_flag) indicating whetheror not the CTU arithmetically decoded in Step S101 is at the end of aslice (Step S102). For example, slices are regions obtained by dividinga picture at dividing points provided in raster scan order when thepicture is processed on a per-CTU basis. Furthermore, when theend-of-slice flag indicates 1, it indicates that the CTU correspondingto the flag, that is, the CTU which was arithmetically decodedimmediately before is at the end of a slice. When the end-of-slice flagindicates 0, it indicates that the CTU is not at the end of a slice.

The end-of-slice determining unit 112 then determines whether or not theend-of-slice flag (end_of_slice_flag) indicates 0 (Step S103). Here,when it is determined that the end-of-slice flag indicates 1 but not 0,that is, the CTU is at the end of a slice (No in Step S103), thetermination unit 115 performs arithmetic decoding termination (StepS104). The arithmetic decoding termination refers to processing in whicha bitstream pointer is adjusted to allow decoding of a next signal inthe bitstream BS without renormalization of the internal probabilitystate of arithmetic decoding. In the termination, for example, sevenbits may be further read from the bitstream BS. Furthermore, thetermination unit 115 outputs a signal indicating that the CTU is at theend of a slice (slice processing termination signal). For example, theslice processing termination signal is used for notifying execution ofprocessing of a next slice.

On the other hand, when it is determined that the end-of-slice flagindicates 0 (Yes in Step S103), that is, when the CTU which wasarithmetically decoded immediately before is not at the end of a slice,the end-of-sub-stream determining unit 113 determines whether or not theCTU is at the end of a sub-stream (Step S105).

The sub-stream refers to, for example, a processing unit such as a tileor a CTU line. Tiles are blocks obtained by dividing a picturevertically and/or horizontally. One tile including one or more CTUs.Furthermore, since coding/decoding can start from the beginning of atile, the tiles are structural units that can be used in parallelprocessing. Furthermore, CTU lines are structural units obtained bydividing a slice or a picture into lines. In the method referred to asWPP where processing starts from the left end of a picture, the contextinformation (probability information) of the end of the CTU located atthe top-right of a current CTU to be arithmetically coded orarithmetically decoded is used as the initial probability of the currentCTU. In the WPP, arithmetic coding or arithmetic decoding of the currentCTU can start when processing of the CTU from which the initialprobability is obtained is completed. Hence, a plurality of CTU linescan be processed in parallel (detailed processing may be similar to thatin NPL 1).

Here, for example, when the sub-stream is a tile, the end-of-sub-streamdetermining unit 113 compares, in Step S105, the tile ID of the CTUwhich was arithmetically decoded immediately before with the tile ID ofa next CTU, to determine whether or not they are different. Accordingly,it is determined whether or not the CTU which was arithmetically decodedimmediately before is at the end of a tile (See FIG. 9 that will bedescribed later). The tile ID refers to internal information fordistinguishing which tile the CTU belongs to. More specifically, whenthe two tile IDs are different, the end-of-sub-stream determining unit113 determines that the CTU which was arithmetically decoded immediatelybefore is at the end of a sub-stream. Furthermore, when the sub-streamis a CTU line, the end-of-sub-stream determining unit 113 determines, inStep S105, whether or not a CTU next to the CTU which was arithmeticallydecoded immediately before is at the left end of a picture. In the casewhere a picture is divided into tiles, it is determined whether or notthe next CTU is at the left end of a tile. Accordingly, it is determinedwhether or not the CTU which was arithmetically decoded immediatelybefore is at the end of a CTU line (See FIG. 9 that will be describedlater). More specifically, when the next CTU is at the left end of apicture (or a tile), the end-of-sub-stream determining unit 113determines that the CTU which was arithmetically decoded immediatelybefore is at the end of a CTU line.

When it is determined in Step S105 that the CTU is at the end of asub-stream (Yes in Step S105), the sub-stream termination unit 116performs arithmetic decoding on 1-bit indicating the end of a sub-stream(sub-last bit), and performs sub-stream termination of arithmeticdecoding (arithmetic decoding sub-stream termination) (Step S106).Arithmetic decoding of the sub-last bit always restores a value of 1. Inother words, a sub-last bit indicating a value of 1 is arithmeticallycoded in advance and included in a bitstream BS such that the sub-lastbit is positioned after the CTU which is at the end of a sub-stream.Furthermore, the arithmetic decoding sub-stream termination isprocessing similar to arithmetic decoding termination performed by thetermination unit 115 in Step S104.

After the arithmetic decoding sub-stream termination is performed, thebeginning-of-byte searching unit 114 performs beginning-of-byte searchwhich is processing for searching for the beginning of a next byte unitand which is similar to Step S806 in FIG. 2 (Step S107). Morespecifically, since processing can be started from the beginning of byteunits, the beginning-of-byte searching unit 114 searches for thebeginning of a next byte unit, and moves a bitstream pointer to thebeginning point. The beginning point of the byte unit searched for isthe beginning point of a next sub-stream. After it is determined in StepS105 that the CTU is not at the end of a sub-stream (No in Step S105),or after the beginning-of-byte search in Step S107, the entropy decodingunit 110 repeats the processing from Step S101 on a next CTU.

FIG. 9 is a diagram showing an example of slice syntax according toEmbodiment 1.

The slice according to Embodiment 1 includes data 181 indicating a codedCTU (coding_tree_unit( )) and an arithmetically coded end-of-slice flag182 (end_of_slice_flag) for determining the end of the slice. The slicealso includes the arithmetically coded sub-last bit 184(end_of_sub_stream_one_bit) and a predetermined bit string 185(byte_alignment( )), when a condition 183 is satisfied.

In the slice according to Embodiment 1, the data 181, the end-of-sliceflag 182, the condition 183, and the bit string 185 respectively havethe structure similar to that of the data 851, the end-of-slice flag852, the condition 853, and the bit string 854 in the slice shown inFIG. 3A. The slice according to Embodiment 1 is different from the sliceshown in FIG. 3A in that the sub-last bit 184(end_of_sub_stream_one_bit) on which arithmetic coding has beenperformed is included.

The condition 183 is a condition that the CTU indicated by the data 181is at the end of a sub-stream. More specifically, the condition 183 is afirst condition that the CTU is not at the end of a slice but at the endof a tile, or a second condition that the CTU is not at the end of aslice but at the end of a CTU line.

More specifically, the first condition is a condition that theend-of-slice flag (end_of_slice_flag) indicates 0, tiles_enabled_flag istrue, and TileID[x] and TileID[x−1] are different. Whentiles_endabled_flag is true, the tiles_enabled_flag indicates that thesub-stream is a tile. TileID[x] indicates the tile ID of a CTU next tothe CTU indicated by the data 181. TileID[x−1] indicates the tile ID ofthe CTU indicated by the data 181.

The second condition is a condition that the end-of-slice flag(end_of_slice_flag) indicates 0, entropy_coding_sync_enabled_flag istrue, and the CTU next to the CTU indicated by the data 181 is at theleft end of a picture. When entropy_coding_sync_enabled_flag is true,the entropy_coding_sync_enabled_flag indicates that the sub-stream is aCTU line. When the next CTU is at the left end of a picture, and whenthe address of the CTU next to the CTU indicated by the data 181 isdivided by the horizontal width of the picture, the remainder is 0. TheCTB (Ctb) in the condition 183 is used in the same meaning as CTU.

The entropy decoding unit 110 performs arithmetic decoding on the data181 (coding_tree_unit( )) and the end-of-slice flag 182(end_of_slice_flag). Subsequently, the entropy decoding unit 110determines whether or not the condition 183 is satisfied. When theentropy decoding unit 110 determines that the condition 183 issatisfied, the entropy decoding unit 110 obtains (restores) a value of1, by performing arithmetic decoding on the sub-last bit 184(end_of_sub_stream_one_bit). Upon obtainment of the value of 1, theentropy decoding unit 110 performs arithmetic decoding sub-streamtermination, and performs beginning-of-byte search that is processing inwhich the bit string 185 is skipped. The arithmetically decoded sub-lastbit 184 (end_of_sub_stream_one_bit) always indicates a value of 1. Whenthe condition 183 is not satisfied, the sub-last bit 184 is not includedin a slice.

In such a manner, in Embodiment 1, when the CTU which was arithmeticallydecoded immediately before is at the end of a sub-stream, arithmeticdecoding sub-stream termination is performed which is the sameprocessing as the termination performed when the CTU which wasarithmetically decoded immediately before is at the end of a slice.Hence, the image decoding apparatus 100 is capable of startingarithmetic decoding of a CTU from the beginning of a next byte unitsearched for in Step 107, that is, from a point other than the beginningin a bitstream BS. As a result, the image decoding apparatus 100 iscapable of decoding a plurality of structural units in a bitstream BSboth in serial and in parallel. The structural units may be slices orsub-streams.

As described above, in Embodiment 1, arithmetic decoding of a pluralityof sub-streams can be performed in parallel. Hence, Embodiment 1 isuseful when high-speed processing is necessary, such as when a real-timeplayback of moving pictures with high resolution is performed.Furthermore, in Embodiment 1, termination is performed, for example, byproperly resetting the internal probability state of arithmetic decodingat the end of a sub-stream. Hence, even when arithmetic decoding isperformed on a plurality of sub-streams in parallel, the internalprobability state in decoding is always the same as that in coding,allowing proper decoding of the bitstream BS.

Furthermore, in Embodiment 1, when a CTU is at the end of a slice,arithmetic decoding of a sub-last bit and arithmetic decoding sub-streamtermination are not performed. Accordingly, when the CTU is at the endof a slice, it is not necessary to include, in a bitstream BS, asub-last bit that is a redundant code. As a result, it is possible toproperly decode a bitstream BS coded with less decrease in efficiencyand allowing parallel processing.

Furthermore, in Embodiment 1, processing, including arithmetic decodingof a sub-last bit and termination, is performed. Hence, commonprocessing can be performed on the end of a sub-stream and on the end ofa slice. More specifically, since an additional processing unit is notnecessary for processing performed on the end of a sub-stream, imagescan be decoded with simple configuration. In other words, theconfiguration, in which arithmetic decoding termination is triggeredwhen processing is performed on the end of a slice, that is, when avalue of 1 is restored by performing arithmetic decoding of 1-bit, canbe applied not only to the end of a slice, but also to the end of asub-stream. With this, the same configuration can be used, simplifyingthe configuration for decoding images. More specifically, the sub-streamtermination unit 116 is capable of using functions of the end-of-slicedetermining unit 112 and the termination unit 115.

Variation

In Embodiment 1, arithmetic decoding is performed on the sub-last bit184, and the bit string 185 including the first bit indicating a valueof 1 is skipped. In Variation of Embodiment 1, arithmetic decoding isperformed on the first bit, as the sub-last bit 184. More specifically,in Variation of Embodiment 1, the sub-last bit 184 shown in FIG. 9 isomitted. Instead, the first bit of the bit string 185 is used as thesub-last bit. Variation of Embodiment 1 also produces advantageouseffects similar to those in Embodiment 1.

FIG. 10 is a diagram showing an example of syntax of the bit string 185according to Variation of Embodiment 1.

The bit string 185 according to Variation of Embodiment 1 includes a bit185 a having a value to be restored to a value of 1 by arithmeticdecoding, and as many bits 185 b which indicate values of 0 as arenecessary and which are not to be arithmetically decoded. Specifically,the first bit 185 a of the bit string 185 according to Variation ofEmbodiment 1 is not a bit indicating a value of 1 as in Embodiment 1,but a bit obtained by performing arithmetic coding on a value of 1.

In FIG. 10, f(1) in Descriptor indicates that arithmetic coding orarithmetic decoding is not performed on the data (bit) which is includedin a bitstream and which is associated with f(1). More specifically,f(1) indicates that the value of data (bit) itself included in abitstream is recognized as an original value of the data. For example,when a bit in a bitstream indicates “0”, “0” is recognized as anoriginal value of the bit. When a bit in a bitstream indicates “1”, “1”is recognized as an original value of the bit. On the other hand, ae(v)indicates that arithmetic coding or arithmetic decoding is performed onthe data (bit), associated with ae(v), in a bitstream. Morespecifically, ae(v) indicates that arithmetic coding or arithmeticdecoding based on information indicating the above probabilityinformation or internal probability state is performed on data (bit) ina bitstream.

In Variation of Embodiment 1, it is possible to obtain advantageouseffects similar to those in Embodiment 1, and to decrease the number ofbits of data to be coded or decoded of each sub-stream by 1 bit,allowing an increase in coding efficiency.

In Embodiment 1 and Variation of Embodiment 1, arithmetic decodingsub-stream termination is performed when a value of 1 is restored bydecoding 1-bit (sub-last bit). However, arithmetic decoding sub-streamtermination may be performed when a different value is restored. Forexample, the value may be “0” or any other values as long as they arepredetermined. Furthermore, arithmetic decoding may be performed on aflag indicating whether or not a CTU is at the end of a sub-stream (forexample, end_of_sub_stream_flag) instead of on the sub-last bit. Morespecifically, when the end-of-slice flag (end_of_slice_flag) indicates0, the entropy decoding unit 110 performs arithmetic decoding on anend-of-sub-stream flag (end_of_sub_stream_flag). When the entropydecoding unit 110 determines that the end-of-sub-stream flag indicates1, the entropy decoding unit 110 performs arithmetic decodingtermination similar to the termination performed when the end-of-sliceflag indicates 1, and performs beginning-of-byte search (byte_alignment()). When the entropy decoding unit 110 determines that theend-of-sub-stream flag indicates 0, the entropy decoding unit 110continues arithmetic decoding on a next CTU.

Use of the end-of-sub-stream flag in such a manner also provides theadvantageous effects similar to those in Embodiment 1 and Variation ofEmbodiment 1.

In Embodiment 1 and Variation of Embodiment 1, arithmetic decodingsub-stream termination is performed when the CTU which wasarithmetically decoded immediately before is at the end of a sub-stream.In other words, in Embodiment 1 and Variation of Embodiment 1,arithmetic decoding sub-stream termination is performed when the CTU tobe arithmetically decoded next to the CTU which was arithmeticallydecoded immediately before is at the beginning of a sub-stream. Inaddition, in Embodiment 1 and Variation of Embodiment 1, when the CTUwhich was arithmetically decoded immediately before is at the end of aslice, arithmetic decoding termination is performed. When the CTU is notat the end of a slice but at the end of a sub-stream, arithmeticdecoding sub-stream termination is performed which is the sameprocessing as the arithmetic decoding termination. Accordingly, it ispossible to prevent arithmetic decoding termination from beingredundantly performed, allowing proper arithmetic decoding.

Embodiment 2

FIG. 11 is a block diagram showing an example of a configuration of animage decoding apparatus according to Embodiment 2.

An image coding apparatus 200 according to Embodiment 2 generates abitstream BS to be decoded by the image decoding apparatus 100 accordingto Embodiment 1. The image coding apparatus 200 includes: a subtractor205; a transform and quantization unit 210; an entropy coding unit 220;an inverse quantization and inverse transform unit 230; an adder 235; aloop filter 240; a memory 250; an intra prediction unit 260; a motionestimation unit 270; a motion compensation unit 280; and an intra/interselector switch 290.

The subtractor 205 calculates a prediction error signal that is adifference between an input signal indicating a block included in imagedata and a prediction signal. The transform and quantization unit 210transforms a prediction error signal in a spatial domain (frequencytransform) to generate transform coefficients in a frequency domain. Forexample, the transform and quantization unit 210 performs discretecosine transform (DCT) on the prediction error signal to generatetransform coefficients. Furthermore, the transform and quantization unit210 quantizes the transform coefficients to generate quantizedcoefficients.

The entropy coding unit 220 performs variable-length coding on thequantized coefficients to generate a bitstream BS. Furthermore, theentropy coding unit 220 performs variable-length coding on motion data(for example, motion vector) estimated by the motion estimation unit270, and includes the data in the bitstream BS for output.

The inverse quantization and inverse transform unit 230 restorestransform coefficients by performing inverse quantization on thequantized coefficients. The inverse quantization and inverse transformunit 230 further restores a prediction error signal by performinginverse transform on the restored transform coefficients. It is to benoted that the restored prediction error signal is not identical to theprediction error signal generated by the subtractor 205 becauseinformation is removed by quantization. In other words, the restoredprediction error signal includes quantized errors.

The adder 235 generates a local decoded image by adding the restoredprediction error signal and a prediction signal. The loop filter 240applies loop filtering, such as deblocking filtering, to the generatedlocal decoded image.

The memory 250 is a memory for storing reference images to be used formotion compensation. More specifically, the memory 250 stores the localdecoded image to which loop filtering has been applied, as a referenceimage.

The intra prediction unit 260 generates a prediction signal (intraprediction signal) by performing intra prediction according to an intraprediction mode. More specifically, the intra prediction unit 260performs intra prediction on a current block to be coded (input signal)by referring to images neighboring the current block in the localdecoded image generated by the adder 235. Accordingly, the intraprediction unit 260 generates an intra prediction signal.

The motion estimation unit 270 estimates motion data (for example,motion vector) indicating motion between the input signal and areference image stored in the memory 250. The motion compensation unit280 performs motion compensation based on the estimated motion data togenerate a prediction signal (inter prediction signal) of the currentblock.

The intra/inter selector switch 290 selects an intra-prediction signalor inter prediction signal, and outputs the selected signal to thesubtractor 205 and the adder 235 as a prediction signal.

With the above configuration, the image coding apparatus 200 accordingto Embodiment 2 codes image data.

Here, the entropy coding unit 220 in the image coding apparatus 200according to Embodiment 2 performs arithmetic coding on a current signalto be coded including quantized coefficients and motion data, that is, acurrent signal including CTUs to perform variable length-coding on thecurrent signal.

According to arithmetic coding performed by the entropy coding unit 220according to Embodiment 2, it is possible to generate a bitstream BSthat is properly decodable both in parallel processing and serialprocessing. Hence, when sub-streams are used and high-speed processingis necessary in the HEVC, implementation of arithmetic coding accordingto Embodiment 2 is highly beneficial.

Hereinafter, a detailed description is given of arithmetic codingperformed by the entropy coding unit 220. The arithmetic codingaccording to Embodiment 2 corresponds to the arithmetic decodingaccording to Embodiment 1.

FIG. 12 is a block diagram showing an example of a configuration of theentropy coding unit 220 according to Embodiment 2. The entropy codingunit 220 according to Embodiment 2 includes: a CTU coding unit 221, anend-of-slice coding unit 222, an end-of-sub-stream determining unit 223,a sub-stream termination unit 226, a byte alignment unit 224, and atermination unit 225. The entropy coding unit 220 performs arithmeticcoding on a current signal to output a bitstream BS. The entropy codingunit 220 also outputs a slice processing termination signal fornotifying the end of slice processing, as necessary.

FIG. 13 is a flowchart of an example of processing performed by theentropy coding unit 220 according to Embodiment 2.

First, the CTU coding unit 221 performs arithmetic coding on a CTU(coding_tree_unit( )) included in a current signal, based on apredetermined method (Step S201). The CTU coding unit 221 also insertsthe CTU thus arithmetically coded into a bitstream BS before output.Alternatively, the CTU coding unit 221 stores the arithmetically codedCTU in a memory in the image coding apparatus 200, for example.

Subsequently, the end-of-slice coding unit 222 performs arithmeticcoding on an end-of-slice flag (end_of_slice_flag) indicating whether ornot the CTU arithmetically coded in Step S201 is at the end of a slice(Step S202). The end-of-slice coding unit 222 then determines whether ornot the end-of-slice flag (end_of_slice_flag) indicates 0 (Step S203).Here, when it is determined that the end-of-slice flag indicates 1 butnot 0, that is, the CTU is at the end of a slice (NO in Step S203), thetermination unit 225 performs arithmetic coding termination (Step S204).The arithmetic coding termination is processing which is different fromnormal arithmetic coding and which is performed to reset the internalprobability state of arithmetic coding. More specifically, in arithmeticcoding, there are cases where, when a current binary signal is coded, abit string is not output after updating the internal probability state.If the bit string is not output, information is lost. To prevent this,arithmetic coding termination is performed. Specifically, arithmeticcoding termination includes EncoderFlush disclosed in NPL 1. With sucharithmetic coding termination, the internal probability state is writtento the bitstream BS, thereby generating the bitstream BS that isproperly decodable. Furthermore, the termination unit 225 outputs asignal indicating that the CTU is at the end of a slice (sliceprocessing termination signal). For example, the slice processingtermination signal is used for notification of execution of processingof a next slice.

On the other hand, when it is determined that the end-of-slice flagindicates 0 (Yes in Step S203), that is, when the CTU which wasarithmetically coded immediately before is not at the end of a slice,the end-of-sub-stream determining unit 223 determines whether or not theCTU is at the end of a sub-stream (Step S205). The sub-stream is thetile or CTU line described above. The end-of-sub-stream determining unit223 determines whether or not the CTU is at the end of a sub-stream inthe similar manner to that in Embodiment 1.

When it is determined that the CTU is at the end of a sub-stream (Yes inStep S205), the sub-stream termination unit 226 performs arithmeticcoding on 1-bit indicating the end of a sub-stream (sub-last bit), andperforms sub-stream termination of arithmetic coding (arithmetic codingsub-stream termination) (Step S206). Here, arithmetic coding isperformed on the sub-last bit which always indicates a value of 1. Morespecifically, the sub-last bit which indicates a value of 1 isarithmetically coded in advance and is included in a bitstream BS sothat the sub-last bit is positioned after the CTU that is at the end ofa sub-stream. Furthermore, the arithmetic coding sub-stream terminationis processing similar to arithmetic coding termination performed by thetermination unit 225 in Step S204.

After the arithmetic coding sub-stream termination, the byte alignmentunit 224 performs byte alignment which is processing of writing N bits(N is an integer that is greater than or equal to 0) so that the numberof bits of a coded sub-stream is equal to an integral multiple of a byteunit (Step S207). More specifically, the byte alignment unit 224 writesN bits so that the beginning of the CTU to be arithmetically coded nextis the beginning of a byte unit, and moves a bitstream pointer to thebeginning point.

When it is determined that the CTU is not at the end of a sub-stream (Noin Step S205) or after Step S207, the entropy coding unit 220 repeatsprocessing from S201 on a next CTU.

The entropy coding unit 220 according to Embodiment 2 performsarithmetic coding on slices according to the syntax shown in FIG. 9.

More specifically, the entropy coding unit 220 generates data 181(coding_tree_unit( )) which indicates the arithmetically coded CTU andan arithmetically coded end-of-slice flag 182 (end_of_slice_flag), andincludes them into the bitstream BS. Subsequently, the entropy codingunit 220 determines whether or not a condition 183 is satisfied. Whenthe entropy coding unit 220 determines that the condition 183 issatisfied, the entropy coding unit 220 performs arithmetic coding on thesub-last bit 184 (end_of_sub_stream_one_bit) indicating a value of 1,and includes the sub-last bit 184 in the bitstream BS. Upon performingof arithmetic coding of the sub-last bit 184, the entropy coding unit220 performs arithmetic coding sub-stream termination, and performs bytealignment which is processing of writing the bit string 185. When thecondition 183 is not satisfied, the entropy coding unit 220 does notperform arithmetic coding on the sub-last bit 184, and does not performbyte alignment, either. As a result, when the condition 183 is notsatisfied, the arithmetically coded sub-last bit 184 and the bit string185 are not included in a slice.

In such a manner, in Embodiment 2, when the CTU which was arithmeticallycoded immediately before is at the end of a sub-stream, arithmeticcoding sub-stream termination is performed which is the same processingas the termination performed when the CTU which was arithmetically codedimmediately before is at the end of a slice. Accordingly, the imagecoding apparatus 200 is capable of starting arithmetic coding of a CTUfrom the end of a bit string written in Step S207, that is, from a pointother than the beginning in a current signal to be coded. As a result,the image coding apparatus 200 is capable of coding a plurality ofstructural unit included in an input signal to be coded, both in serialand parallel. The structural units may be slices or sub-streams.

As described, since arithmetic coding on a plurality of sub-streams canbe performed in parallel in Embodiment 2, Embodiment 2 is useful whenhigh-speed processing is necessary, such as when high-resolution movingpictures are recorded in real time. Furthermore, according to Embodiment2, termination is performed by, for example, properly resetting theinternal probability state of arithmetic coding. Hence, even whenarithmetic coding is performed on a plurality of sub-streams inparallel, the internal probability state in coding is the same as thatin decoding, allowing proper generation of a bitstream BS.

Furthermore, in Embodiment 2, when a CTU is at the end of a slice,arithmetic coding of a sub-last bit and arithmetic coding sub-streamtermination are not performed. Accordingly, when the CTU is at the endof a slice, it is not necessary to include a sub-last bit that is aredundant code, in a bitstream BS. As a result, it is possible toperform parallel processing while preventing decrease in codingefficiency.

Furthermore, in Embodiment 2, processing, including arithmetic coding ofa sub-last bit and termination, is performed on the end of a sub-stream.Hence, common processing can be performed on the end of a sub-stream andon the end of a slice. More specifically, since an additional processingunit is not necessary for processing performed on the end of asub-stream, images can be decoded with simple configuration. In otherwords, the configuration, in which arithmetic coding termination istriggered when processing is performed on the end of a slice, that is,when a value of 1 is restored by arithmetic coding of 1-bit, can beapplied only to the end of a slice, but also to the end of a sub-stream.With this, the same configuration can be used, simplifying theconfiguration for coding images. More specifically, the sub-streamtermination unit 226 is capable of using functions of the end-of-slicecoding unit 222 and the termination unit 225.

Variation of Embodiment 2

In Embodiment 2, arithmetic coding is performed on the sub-last bit 184,and the bit string 185 including the first bit indicating a value of 1is skipped. In Variation of Embodiment 2, arithmetic coding is performedon the first bit, as the sub-last bit 184. More specifically, inVariation of Embodiment 2, the sub-last bit 184 shown in FIG. 9 isomitted. Instead, the first bit 185 a of the bit string 185 (see FIG.10) is used as the sub-last bit. Such Variation of Embodiment 2 alsoproduces advantageous effects similar to those in Embodiment 2.Variation of Embodiment 2 is an image coding method which corresponds tothe image decoding method according to Variation of Embodiment 1.

As shown in FIG. 10, the entropy coding unit 220 according to Variationof Embodiment 2 writes a bit string 185 into a bitstream BS. The bitstring 185 includes a bit 185 a generated by performing arithmeticcoding on a bit indicating a value of 1, and as many bits 185 b whichindicate values of 0 as are necessary and which are not to bearithmetically coded. Specifically, the first bit 185 a of the bitstring 185 according to Variation of Embodiment 2 is not a bitindicating a value of 1 as in Embodiment 1, but a bit obtained byperforming arithmetic coding on a value of 1.

In Variation of Embodiment 2, it is possible to obtain advantageouseffects similar to those in Embodiment 1, and to decrease the number ofbits of data to be coded or decoded of each sub-stream by 1 bit,allowing an increase in coding efficiency. In Embodiment 1 and itsVariation, when 1-bit indicating a value of 1 (sub-last bit) is coded,arithmetic coding sub-stream termination is performed; however, it maybe that the arithmetic coding sub-stream termination is performed whenperforming arithmetic coding on a bit indicating another value. Forexample, the value may be “0”, or any other values as long as it ispredetermined. Furthermore, instead of the sub-last bit, arithmeticcoding may be performed on a flag which indicates whether or not the CTUis at the end of a sub-stream (for example, end_of_sub_stream_flag).More specifically, when the end-of-slice flag (end_of_slice_flag)indicates 0, the entropy coding unit 220 performs arithmetic coding onthe end-of-sub-stream flag (end_of_sub_stream_flag). Subsequently, whenthe entropy coding unit 220 determines that the end-of-sub-stream flagindicates 1, the entropy coding unit 220 performs arithmetic codingtermination that is similar to the termination performed when theend-of-slice flag indicates 1, and also performs byte alignment(byte_alignment( )). When the entropy coding unit 220 determines thatthe end-of-sub-stream flag indicates 0, the entropy coding unit 220continues arithmetic coding on a next CTU. Use of the end-of-sub-streamflag in such a manner also provides the advantageous effects similar tothose in Embodiment 2 and its Variation.

In Embodiment 2 and its Variation, arithmetic coding sub-streamtermination is performed when the CTU which was arithmetically codedimmediately before is at the end of a sub-stream. In other words, inEmbodiment 2 and its Variation, arithmetic coding sub-stream terminationis performed when the CTU that is to be arithmetically coded next to theCTU which was arithmetically coded immediately before is at thebeginning of a sub-stream. In addition, in Embodiment 2 and itsVariation, when the CTU which was arithmetically coded immediatelybefore is at the end of a slice, arithmetic decoding termination isperformed. When the CTU is at the end of a sub-stream but not at the endof a slice, arithmetic coding sub-stream termination is performed whichis the same processing as the arithmetic coding termination. As aresult, it is possible to prevent arithmetic coding termination frombeing performed redundantly, allowing proper arithmetic coding.

Descriptions have been given of the image decoding method and the imagecoding method according to one or more embodiments, based on each of theabove embodiments and variations thereof; however, the presentdisclosure is not limited to these embodiments and their variations.Various modifications to the above embodiments and their variations thatcan be conceived by those skilled in the art, and forms configured bycombining constituent elements in different embodiments and theirvariations without departing from the teachings of the presentdisclosure may be included in the scope of one or more of the aspects.

FIG. 14A is a flowchart of an image decoding method according to oneembodiment of the present disclosure.

An image decoding method according to one embodiment is an imagedecoding method of decoding, on a per-block basis, a coded imageincluded in a bitstream. The image decoding method includes: performingarithmetic decoding on a current block to be decoded (S11), determiningwhether or not the current block is at the end of a slice (S12),determining whether or not the current block is at the end of asub-stream that is a structural unit of the image that is different fromthe slice, when it is determined that the current block is not at theend of the slice (S13), and performing arithmetic decoding on a sub-lastbit and performing arithmetic decoding termination, when it isdetermined that the current block is at the end of the sub-stream (S14).

FIG. 14B is a diagram showing a configuration of an image decodingapparatus according to one embodiment of the present disclosure.

An image decoding apparatus 10 according to one embodiment is an imagedecoding apparatus which decodes, on a per-block basis, a coded imageincluded in a bitstream. The image decoding apparatus 10 includes: ablock decoding unit 11 which performs arithmetic decoding on a currentblock to be decoded; an end-of-slice determining unit 12 whichdetermines whether or not the current block is at the end of a slice; anend-of-sub-stream determining unit 13 which determines, when it isdetermined that the current block is not at the end of the slice,whether or not the current block is at the end of a sub-stream that is astructural unit of the image that is different from the slice; and atermination unit 14 which performs arithmetic decoding on a sub-last bitand performs arithmetic decoding termination as first termination, whenit is determined that the current block is at the end of the sub-stream.

With this, even if an arithmetically decoded block (CTU) is not at theend of a slice, if the block is at the end of a sub-stream (for example,tile or CTU line), arithmetic decoding termination is performed. As aresult, it is possible to properly decode a plurality of sub-streams ina bitstream in parallel. Furthermore, it is possible to properly decodea bitstream coded with less decrease in efficiency, by using slices andsub-streams. Furthermore, processing, including arithmetic decoding of asub-last bit and termination, is performed on the end of a sub-stream.Hence, when processing, including arithmetic decoding of a flag andtermination, is performed on the end of a slice, common processing canbe performed on the end of a sub-stream and on the end of a slice. Morespecifically, since an additional processing unit is not necessary forprocessing performed on the end of a sub-stream, images can be decodedwith simple configuration.

FIG. 15A is a flowchart of an image coding method according to oneembodiment of the present disclosure.

The image coding method according to one embodiment is an image codingmethod of coding an image on a per-block basis to generate a bitstream.The image coding method includes: performing arithmetic coding on acurrent block to be coded (S21); determining whether or not the currentblock is at an end of a slice (S22); determining, when it is determinedthat the current block is not at the end of the slice, whether or notthe current block is at an end of a sub-stream which is a structuralunit of the image that is different from the slice (S23); and performingarithmetic coding on a sub-last bit and arithmetic coding termination asfirst termination, when it is determined that the current block is atthe end of the sub-stream (S24).

FIG. 15B is a diagram showing a configuration of an image codingapparatus according to one embodiment of the present disclosure.

An image coding apparatus 20 according to one embodiment is an imagecoding apparatus which codes an image on a per-block basis to generate abitstream. The image coding apparatus 20 includes: a block coding unit21 which performs arithmetic coding on a current block to be coded; anend-of-slice determining unit 22 which determines whether or not thecurrent block is at the end of a slice; an end-of-sub-stream determiningunit 23 which determines, when it is determined that the current blockis not at the end of the slice, whether or not the current block is atthe end of a sub-stream which is a structural unit of the image that isdifferent from the slice; and a termination unit 24 which performsarithmetic coding on a sub-last bit and performs arithmetic codingtermination as first termination, when it is determined that the currentblock is at the end of the sub-stream.

With this, even if an arithmetically coded block (CTU) is not at the endof a slice, but if the block is at the end of a sub-stream (for example,tile or CTU line), arithmetic coding termination is performed. Thisallows a plurality of sub-streams in a bitstream to be properly coded inparallel. Furthermore, it is possible to suppress a decrease in codingefficiency by using slices and sub-streams. Furthermore, processing,including arithmetic coding of a sub-last bit and termination, isperformed on the end of a sub-stream. Hence, when processing, includingarithmetic coding of a flag and termination is performed on the end of aslice, common processing can be performed on the end of a sub-stream andon the end of a slice. More specifically, since an additional processingunit is not necessary for processing performed on the end of asub-stream, images can be coded with simple configuration.

In each embodiment above, each of the structural elements may beconfigured by a dedicated hardware, or may be implemented by executing asoftware program suitable for respective structural elements. Each ofthe structural elements may be implemented by a program executing unit,such as a CPU or a processor, reading a software program recorded on ahard disk or a recording medium such as a semiconductor memory, andexecuting the program. In other words, each of the image codingapparatus and the image decoding apparatus includes processing circuitryand storage electrically connected to the processing circuitry (storageaccessible from the processing circuitry). The processing circuitryincludes at least one of a dedicated hardware and a program executingunit. When the processing circuitry includes the program executing unit,the storage stores a software program executed by the program executingunit. Here, a software for implementing the image decoding apparatus, animage coding apparatus and others according to each embodiment above isa program causing a computer to execute each step included in the imagedecoding method shown in FIG. 14A or in the image coding method shown inFIG. 15A.

Furthermore, in each of above embodiments and their variations, it maybe that the structural elements not specifically described are similarto those described in NPL1.

Embodiment 3

The processing described in each of embodiments can be simplyimplemented in an independent computer system, by recording, in arecording medium, a program for implementing the configurations of themoving picture coding method (image coding method) and the movingpicture decoding method (image decoding method) described in each ofembodiments. The recording media may be any recording media as long asthe program can be recorded, such as a magnetic disk, an optical disk, amagnetic optical disk, an IC card, and a semiconductor memory.

Hereinafter, the applications of the moving picture coding method (imagecoding method) and the moving picture decoding method (image decodingmethod) described in each of embodiments and systems using thereof willbe described. The system has a feature of including an image coding anddecoding apparatus that includes an image coding apparatus using theimage coding method and an image decoding apparatus using the imagedecoding method. Other configurations in the system can be changed asappropriate depending on the cases.

FIG. 16 illustrates an overall configuration of a content providingsystem ex100 for implementing content distribution services. The areafor providing communication services is divided into cells of desiredsize, and base stations ex106, ex107, ex108, ex109, and ex110 which arefixed wireless stations are placed in each of the cells.

The content providing system ex100 is connected to devices, such as acomputer ex111, a personal digital assistant (PDA) ex112, a cameraex113, a cellular phone ex114 and a game machine ex115, via the Internetex101, an Internet service provider ex102, a telephone network ex104, aswell as the base stations ex106 to ex110, respectively.

However, the configuration of the content providing system ex100 is notlimited to the configuration shown in FIG. 16, and a combination inwhich any of the elements are connected is acceptable. In addition, eachdevice may be directly connected to the telephone network ex104, ratherthan via the base stations ex106 to ex110 which are the fixed wirelessstations. Furthermore, the devices may be interconnected to each othervia a short distance wireless communication and others.

The camera ex113, such as a digital video camera, is capable ofcapturing video. A camera ex116, such as a digital camera, is capable ofcapturing both still images and video. Furthermore, the cellular phoneex114 may be the one that meets any of the standards such as GlobalSystem for Mobile Communications (GSM) (registered trademark), CodeDivision Multiple Access (CDMA), Wideband-Code Division Multiple Access(W-CDMA), Long Term Evolution (LTE), and High Speed Packet Access(HSPA). Alternatively, the cellular phone ex114 may be a PersonalHandyphone System (PHS).

In the content providing system ex100, a streaming server ex103 isconnected to the camera ex113 and others via the telephone network ex104and the base station ex109, which enables distribution of images of alive show and others. In such a distribution, a content (for example,video of a music live show) captured by the user using the camera ex113is coded as described above in each of embodiments (i.e., the camerafunctions as the image coding apparatus according to an aspect of thepresent disclosure), and the coded content is transmitted to thestreaming server ex103. On the other hand, the streaming server ex103carries out stream distribution of the transmitted content data to theclients upon their requests. The clients include the computer ex111, thePDA ex112, the camera ex113, the cellular phone ex114, and the gamemachine ex115 that are capable of decoding the above-mentioned codeddata. Each of the devices that have received the distributed datadecodes and reproduces the coded data (i.e., functions as the imagedecoding apparatus according to an aspect of the present disclosure).

The captured data may be coded by the camera ex113 or the streamingserver ex103 that transmits the data, or the coding processes may beshared between the camera ex113 and the streaming server ex103.Similarly, the distributed data may be decoded by the clients or thestreaming server ex103, or the decoding processes may be shared betweenthe clients and the streaming server ex103. Furthermore, the data of thestill images and video captured by not only the camera ex113 but alsothe camera ex116 may be transmitted to the streaming server ex103through the computer ex111. The coding processes may be performed by thecamera ex116, the computer ex111, or the streaming server ex103, orshared among them.

Furthermore, the coding and decoding processes may be performed by anLSI ex500 generally included in each of the computer ex111 and thedevices. The LSI ex500 may be configured of a single chip or a pluralityof chips. Software for coding and decoding video may be integrated intosome type of a recording medium (such as a CD-ROM, a flexible disk, anda hard disk) that is readable by the computer ex111 and others, and thecoding and decoding processes may be performed using the software.Furthermore, when the cellular phone ex114 is equipped with a camera,the video data obtained by the camera may be transmitted. The video datais data coded by the LSI ex500 included in the cellular phone ex114.

Furthermore, the streaming server ex103 may be composed of servers andcomputers, and may decentralize data and process the decentralized data,record, or distribute data.

As described above, the clients may receive and reproduce the coded datain the content providing system ex100. In other words, the clients canreceive and decode information transmitted by the user, and reproducethe decoded data in real time in the content providing system ex100, sothat the user who does not have any particular right and equipment canimplement personal broadcasting.

Aside from the example of the content providing system ex100, at leastone of the moving picture coding apparatus (image coding apparatus) andthe moving picture decoding apparatus (image decoding apparatus)described in each of embodiments may be implemented in a digitalbroadcasting system ex200 illustrated in FIG. 17. More specifically, abroadcast station ex201 communicates or transmits, via radio waves to abroadcast satellite ex202, multiplexed data obtained by multiplexingaudio data and others onto video data. The video data is data coded bythe moving picture coding method described in each of embodiments (i.e.,data coded by the image coding apparatus according to an aspect of thepresent disclosure). Upon receipt of the multiplexed data, the broadcastsatellite ex202 transmits radio waves for broadcasting. Then, a home-useantenna ex204 with a satellite broadcast reception function receives theradio waves. Next, a device such as a television (receiver) ex300 and aset top box (STB) ex217 decodes the received multiplexed data, andreproduces the decoded data (i.e., functions as the image decodingapparatus according to an aspect of the present disclosure).

Furthermore, a reader/recorder ex218 (i) reads and decodes themultiplexed data recorded on a recording medium ex215, such as a DVD anda BD, or (i) codes video signals in the recording medium ex215, and insome cases, writes data obtained by multiplexing an audio signal on thecoded data. The reader/recorder ex218 can include the moving picturedecoding apparatus or the moving picture coding apparatus as shown ineach of embodiments. In this case, the reproduced video signals aredisplayed on the monitor ex219, and can be reproduced by another deviceor system using the recording medium ex215 on which the multiplexed datais recorded. It is also possible to implement the moving picturedecoding apparatus in the set top box ex217 connected to the cable ex203for a cable television or to the antenna ex204 for satellite and/orterrestrial broadcasting, so as to display the video signals on themonitor ex219 of the television ex300. The moving picture decodingapparatus may be implemented not in the set top box but in thetelevision ex300.

FIG. 18 illustrates the television (receiver) ex300 that uses the movingpicture coding method and the moving picture decoding method describedin each of embodiments. The television ex300 includes: a tuner ex301that obtains or provides multiplexed data obtained by multiplexing audiodata onto video data, through the antenna ex204 or the cable ex203, etc.that receives a broadcast; a modulation/demodulation unit ex302 thatdemodulates the received multiplexed data or modulates data intomultiplexed data to be supplied outside; and amultiplexing/demultiplexing unit ex303 that demultiplexes the modulatedmultiplexed data into video data and audio data, or multiplexes videodata and audio data coded by a signal processing unit ex306 into data.

The television ex300 further includes: a signal processing unit ex306including an audio signal processing unit ex304 and a video signalprocessing unit ex305 that decode audio data and video data and codeaudio data and video data, respectively (which function as the imagecoding apparatus and the image decoding apparatus according to theaspects of the present disclosure); and an output unit ex309 including aspeaker ex307 that provides the decoded audio signal, and a display unitex308 that displays the decoded video signal, such as a display.Furthermore, the television ex300 includes an interface unit ex317including an operation input unit ex312 that receives an input of a useroperation. Furthermore, the television ex300 includes a control unitex310 that controls overall each constituent element of the televisionex300, and a power supply circuit unit ex311 that supplies power to eachof the elements. Other than the operation input unit ex312, theinterface unit ex317 may include: a bridge ex313 that is connected to anexternal device, such as the reader/recorder ex218; a slot unit ex314for enabling attachment of the recording medium ex216, such as an SDcard; a driver ex315 to be connected to an external recording medium,such as a hard disk; and a modem ex316 to be connected to a telephonenetwork. Here, the recording medium ex216 can electrically recordinformation using a non-volatile/volatile semiconductor memory elementfor storage. The constituent elements of the television ex300 areconnected to each other through a synchronous bus.

First, the configuration in which the television ex300 decodesmultiplexed data obtained from outside through the antenna ex204 andothers and reproduces the decoded data will be described. In thetelevision ex300, upon a user operation through a remote controllerex220 and others, the multiplexing/demultiplexing unit ex303demultiplexes the multiplexed data demodulated by themodulation/demodulation unit ex302, under control of the control unitex310 including a CPU. Furthermore, the audio signal processing unitex304 decodes the demultiplexed audio data, and the video signalprocessing unit ex305 decodes the demultiplexed video data, using thedecoding method described in each of embodiments, in the televisionex300. The output unit ex309 provides the decoded video signal and audiosignal outside, respectively. When the output unit ex309 provides thevideo signal and the audio signal, the signals may be temporarily storedin buffers ex318 and ex319, and others so that the signals arereproduced in synchronization with each other. Furthermore, thetelevision ex300 may read multiplexed data not through a broadcast andothers but from the recording media ex215 and ex216, such as a magneticdisk, an optical disk, and a SD card. Next, a configuration in which thetelevision ex300 codes an audio signal and a video signal, and transmitsthe data outside or writes the data on a recording medium will bedescribed. In the television ex300, upon a user operation through theremote controller ex220 and others, the audio signal processing unitex304 codes an audio signal, and the video signal processing unit ex305codes a video signal, under control of the control unit ex310 using thecoding method described in each of embodiments. Themultiplexing/demultiplexing unit ex303 multiplexes the coded videosignal and audio signal, and provides the resulting signal outside. Whenthe multiplexing/demultiplexing unit ex303 multiplexes the video signaland the audio signal, the signals may be temporarily stored in thebuffers ex320 and ex321, and others so that the signals are reproducedin synchronization with each other. Here, the buffers ex318, ex319,ex320, and ex321 may be plural as illustrated, or at least one buffermay be shared in the television ex300. Furthermore, data may be storedin a buffer so that the system overflow and underflow may be avoidedbetween the modulation/demodulation unit ex302 and themultiplexing/demultiplexing unit ex303, for example.

Furthermore, the television ex300 may include a configuration forreceiving an AV input from a microphone or a camera other than theconfiguration for obtaining audio and video data from a broadcast or arecording medium, and may code the obtained data. Although thetelevision ex300 can code, multiplex, and provide outside data in thedescription, it may be capable of only receiving, decoding, andproviding outside data but not the coding, multiplexing, and providingoutside data.

Furthermore, when the reader/recorder ex218 reads or writes multiplexeddata from or on a recording medium, one of the television ex300 and thereader/recorder ex218 may decode or code the multiplexed data, and thetelevision ex300 and the reader/recorder ex218 may share the decoding orcoding.

As an example, FIG. 19 illustrates a configuration of an informationreproducing/recording unit ex400 when data is read or written from or onan optical disk. The information reproducing/recording unit ex400includes constituent elements ex401, ex402, ex403, ex404, ex405, ex406,and ex407 to be described hereinafter. The optical head ex401 irradiatesa laser spot in a recording surface of the recording medium ex215 thatis an optical disk to write information, and detects reflected lightfrom the recording surface of the recording medium ex215 to read theinformation. The modulation recording unit ex402 electrically drives asemiconductor laser included in the optical head ex401, and modulatesthe laser light according to recorded data. The reproductiondemodulating unit ex403 amplifies a reproduction signal obtained byelectrically detecting the reflected light from the recording surfaceusing a photo detector included in the optical head ex401, anddemodulates the reproduction signal by separating a signal componentrecorded on the recording medium ex215 to reproduce the necessaryinformation. The buffer ex404 temporarily holds the information to berecorded on the recording medium ex215 and the information reproducedfrom the recording medium ex215. The disk motor ex405 rotates therecording medium ex215. The servo control unit ex406 moves the opticalhead ex401 to a predetermined information track while controlling therotation drive of the disk motor ex405 so as to follow the laser spot.The system control unit ex407 controls overall the informationreproducing/recording unit ex400. The reading and writing processes canbe implemented by the system control unit ex407 using variousinformation stored in the buffer ex404 and generating and adding newinformation as necessary, and by the modulation recording unit ex402,the reproduction demodulating unit ex403, and the servo control unitex406 that record and reproduce information through the optical headex401 while being operated in a coordinated manner. The system controlunit ex407 includes, for example, a microprocessor, and executesprocessing by causing a computer to execute a program for read andwrite.

Although the optical head ex401 irradiates a laser spot in thedescription, it may perform high-density recording using near fieldlight.

FIG. 20 illustrates the recording medium ex215 that is the optical disk.On the recording surface of the recording medium ex215, guide groovesare spirally formed, and an information track ex230 records, in advance,address information indicating an absolute position on the diskaccording to change in a shape of the guide grooves. The addressinformation includes information for determining positions of recordingblocks ex231 that are a unit for recording data. Reproducing theinformation track ex230 and reading the address information in anapparatus that records and reproduces data can lead to determination ofthe positions of the recording blocks. Furthermore, the recording mediumex215 includes a data recording area ex233, an inner circumference areaex232, and an outer circumference area ex234. The data recording areaex233 is an area for use in recording the user data. The innercircumference area ex232 and the outer circumference area ex234 that areinside and outside of the data recording area ex233, respectively arefor specific use except for recording the user data. The informationreproducing/recording unit 400 reads and writes coded audio, coded videodata, or multiplexed data obtained by multiplexing the coded audio andvideo data, from and on the data recording area ex233 of the recordingmedium ex215.

Although an optical disk having a layer, such as a DVD and a BD isdescribed as an example in the description, the optical disk is notlimited to such, and may be an optical disk having a multilayerstructure and capable of being recorded on a part other than thesurface. Furthermore, the optical disk may have a structure formultidimensional recording/reproduction, such as recording ofinformation using light of colors with different wavelengths in the sameportion of the optical disk and for recording information havingdifferent layers from various angles.

Furthermore, a car ex210 having an antenna ex205 can receive data fromthe satellite ex202 and others, and reproduce video on a display devicesuch as a car navigation system ex211 set in the car ex210, in thedigital broadcasting system ex200. Here, a configuration of the carnavigation system ex211 will be a configuration, for example, includinga GPS receiving unit from the configuration illustrated in FIG. 18. Thesame will be true for the configuration of the computer ex111, thecellular phone ex114, and others.

FIG. 21A illustrates the cellular phone ex114 that uses the movingpicture coding method and the moving picture decoding method describedin embodiments. The cellular phone ex114 includes: an antenna ex350 fortransmitting and receiving radio waves through the base station ex110; acamera unit ex365 capable of capturing moving and still images; and adisplay unit ex358 such as a liquid crystal display for displaying thedata such as decoded video captured by the camera unit ex365 or receivedby the antenna ex350. The cellular phone ex114 further includes: a mainbody unit including an operation key unit ex366; an audio output unitex357 such as a speaker for output of audio; an audio input unit ex356such as a microphone for input of audio; a memory unit ex367 for storingcaptured video or still pictures, recorded audio, coded or decoded dataof the received video, the still pictures, e-mails, or others; and aslot unit ex364 that is an interface unit for a recording medium thatstores data in the same manner as the memory unit ex367.

Next, an example of a configuration of the cellular phone ex114 will bedescribed with reference to FIG. 21B. In the cellular phone ex114, amain control unit ex360 designed to control overall each unit of themain body including the display unit ex358 as well as the operation keyunit ex366 is connected mutually, via a synchronous bus ex370, to apower supply circuit unit ex361, an operation input control unit ex362,a video signal processing unit ex355, a camera interface unit ex363, aliquid crystal display (LCD) control unit ex359, amodulation/demodulation unit ex352, a multiplexing/demultiplexing unitex353, an audio signal processing unit ex354, the slot unit ex364, andthe memory unit ex367.

When a call-end key or a power key is turned ON by a user's operation,the power supply circuit unit ex361 supplies the respective units withpower from a battery pack so as to activate the cell phone ex114.

In the cellular phone ex114, the audio signal processing unit ex354converts the audio signals collected by the audio input unit ex356 invoice conversation mode into digital audio signals under the control ofthe main control unit ex360 including a CPU, ROM, and RAM. Then, themodulation/demodulation unit ex352 performs spread spectrum processingon the digital audio signals, and the transmitting and receiving unitex351 performs digital-to-analog conversion and frequency conversion onthe data, so as to transmit the resulting data via the antenna ex350.Also, in the cellular phone ex114, the transmitting and receiving unitex351 amplifies the data received by the antenna ex350 in voiceconversation mode and performs frequency conversion and theanalog-to-digital conversion on the data. Then, themodulation/demodulation unit ex352 performs inverse spread spectrumprocessing on the data, and the audio signal processing unit ex354converts it into analog audio signals, so as to output them via theaudio output unit ex357.

Furthermore, when an e-mail in data communication mode is transmitted,text data of the e-mail inputted by operating the operation key unitex366 and others of the main body is sent out to the main control unitex360 via the operation input control unit ex362. The main control unitex360 causes the modulation/demodulation unit ex352 to perform spreadspectrum processing on the text data, and the transmitting and receivingunit ex351 performs the digital-to-analog conversion and the frequencyconversion on the resulting data to transmit the data to the basestation ex110 via the antenna ex350. When an e-mail is received,processing that is approximately inverse to the processing fortransmitting an e-mail is performed on the received data, and theresulting data is provided to the display unit ex358.

When video, still images, or video and audio in data communication modeis or are transmitted, the video signal processing unit ex355 compressesand codes video signals supplied from the camera unit ex365 using themoving picture coding method shown in each of embodiments (i.e.,functions as the image coding apparatus according to the aspect of thepresent disclosure), and transmits the coded video data to themultiplexing/demultiplexing unit ex353. In contrast, during when thecamera unit ex365 captures video, still images, and others, the audiosignal processing unit ex354 codes audio signals collected by the audioinput unit ex356, and transmits the coded audio data to themultiplexing/demultiplexing unit ex353.

The multiplexing/demultiplexing unit ex353 multiplexes the coded videodata supplied from the video signal processing unit ex355 and the codedaudio data supplied from the audio signal processing unit ex354, using apredetermined method. Then, the modulation/demodulation unit(modulation/demodulation circuit unit) ex352 performs spread spectrumprocessing on the multiplexed data, and the transmitting and receivingunit ex351 performs digital-to-analog conversion and frequencyconversion on the data so as to transmit the resulting data via theantenna ex350.

When receiving data of a video file which is linked to a Web page andothers in data communication mode or when receiving an e-mail with videoand/or audio attached, in order to decode the multiplexed data receivedvia the antenna ex350, the multiplexing/demultiplexing unit ex353demultiplexes the multiplexed data into a video data bit stream and anaudio data bit stream, and supplies the video signal processing unitex355 with the coded video data and the audio signal processing unitex354 with the coded audio data, through the synchronous bus ex370. Thevideo signal processing unit ex355 decodes the video signal using amoving picture decoding method corresponding to the moving picturecoding method shown in each of embodiments (i.e., functions as the imagedecoding apparatus according to the aspect of the present disclosure),and then the display unit ex358 displays, for instance, the video andstill images included in the video file linked to the Web page via theLCD control unit ex359. Furthermore, the audio signal processing unitex354 decodes the audio signal, and the audio output unit ex357 providesthe audio.

Furthermore, similarly to the television ex300, a terminal such as thecellular phone ex114 probably have 3 types of implementationconfigurations including not only (i) a transmitting and receivingterminal including both a coding apparatus and a decoding apparatus, butalso (ii) a transmitting terminal including only a coding apparatus and(iii) a receiving terminal including only a decoding apparatus. Althoughthe digital broadcasting system ex200 receives and transmits themultiplexed data obtained by multiplexing audio data onto video data inthe description, the multiplexed data may be data obtained bymultiplexing not audio data but character data related to video ontovideo data, and may be not multiplexed data but video data itself.

As such, the moving picture coding method and the moving picturedecoding method in each of embodiments can be used in any of the devicesand systems described. Thus, the advantages described in each ofembodiments can be obtained.

Furthermore, various modifications and revisions can be made in any ofthe embodiments in the present disclosure.

Embodiment 4

Video data can be generated by switching, as necessary, between (i) themoving picture coding method or the moving picture coding apparatusshown in each of embodiments and (ii) a moving picture coding method ora moving picture coding apparatus in conformity with a differentstandard, such as MPEG-2, MPEG-4 AVC, and VC-1.

Here, when a plurality of video data that conforms to the differentstandards is generated and is then decoded, the decoding methods need tobe selected to conform to the different standards. However, since towhich standard each of the plurality of the video data to be decodedconform cannot be detected, there is a problem that an appropriatedecoding method cannot be selected.

In order to solve the problem, multiplexed data obtained by multiplexingaudio data and others onto video data has a structure includingidentification information indicating to which standard the video dataconforms. The specific structure of the multiplexed data including thevideo data generated in the moving picture coding method and by themoving picture coding apparatus shown in each of embodiments will behereinafter described. The multiplexed data is a digital stream in theMPEG-2 Transport Stream format.

FIG. 22 illustrates a structure of the multiplexed data. As illustratedin FIG. 22, the multiplexed data can be obtained by multiplexing atleast one of a video stream, an audio stream, a presentation graphicsstream (PG), and an interactive graphics stream. The video streamrepresents primary video and secondary video of a movie, the audiostream (IG) represents a primary audio part and a secondary audio partto be mixed with the primary audio part, and the presentation graphicsstream represents subtitles of the movie. Here, the primary video isnormal video to be displayed on a screen, and the secondary video isvideo to be displayed on a smaller window in the primary video.Furthermore, the interactive graphics stream represents an interactivescreen to be generated by arranging the GUI components on a screen. Thevideo stream is coded in the moving picture coding method or by themoving picture coding apparatus shown in each of embodiments, or in amoving picture coding method or by a moving picture coding apparatus inconformity with a conventional standard, such as MPEG-2, MPEG-4 AVC, andVC-1. The audio stream is coded in accordance with a standard, such asDolby-AC-3, Dolby Digital Plus, MLP, DTS, DTS-HD, and linear PCM.

Each stream included in the multiplexed data is identified by PID. Forexample, 0x1011 is allocated to the video stream to be used for video ofa movie, 0x1100 to 0x111F are allocated to the audio streams, 0x1200 to0x121F are allocated to the presentation graphics streams, 0x1400 to0x141F are allocated to the interactive graphics streams, 0x1B00 to0x1B1F are allocated to the video streams to be used for secondary videoof the movie, and 0x1A00 to 0x1A1F are allocated to the audio streams tobe used for the secondary audio to be mixed with the primary audio.

FIG. 23 schematically illustrates how data is multiplexed. First, avideo stream ex235 composed of video frames and an audio stream ex238composed of audio frames are transformed into a stream of PES packetsex236 and a stream of PES packets ex239, and further into TS packetsex237 and TS packets ex240, respectively. Similarly, data of apresentation graphics stream ex241 and data of an interactive graphicsstream ex244 are transformed into a stream of PES packets ex242 and astream of PES packets ex245, and further into TS packets ex243 and TSpackets ex246, respectively. These TS packets are multiplexed into astream to obtain multiplexed data ex247.

FIG. 24 illustrates how a video stream is stored in a stream of PESpackets in more detail. The first bar in FIG. 24 shows a video framestream in a video stream. The second bar shows the stream of PESpackets. As indicated by arrows denoted as yy1, yy2, yy3, and yy4 inFIG. 24, the video stream is divided into pictures as I pictures, Bpictures, and P pictures each of which is a video presentation unit, andthe pictures are stored in a payload of each of the PES packets. Each ofthe PES packets has a PES header, and the PES header stores aPresentation Time-Stamp (PTS) indicating a display time of the picture,and a Decoding Time-Stamp (DTS) indicating a decoding time of thepicture.

FIG. 25 illustrates a format of TS packets to be finally written on themultiplexed data. Each of the TS packets is a 188-byte fixed lengthpacket including a 4-byte TS header having information, such as a PIDfor identifying a stream and a 184-byte TS payload for storing data. ThePES packets are divided, and stored in the TS payloads, respectively.When a BD ROM is used, each of the TS packets is given a 4-byteTP_Extra_Header, thus resulting in 192-byte source packets. The sourcepackets are written on the multiplexed data. The TP_Extra_Header storesinformation such as an Arrival_Time_Stamp (ATS). The ATS shows atransfer start time at which each of the TS packets is to be transferredto a PID filter. The source packets are arranged in the multiplexed dataas shown at the bottom of FIG. 25. The numbers incrementing from thehead of the multiplexed data are called source packet numbers (SPNs).

Each of the TS packets included in the multiplexed data includes notonly streams of audio, video, subtitles and others, but also a ProgramAssociation Table (PAT), a Program Map Table (PMT), and a Program ClockReference (PCR). The PAT shows what a PID in a PMT used in themultiplexed data indicates, and a PID of the PAT itself is registered aszero. The PMT stores PIDs of the streams of video, audio, subtitles andothers included in the multiplexed data, and attribute information ofthe streams corresponding to the PIDs. The PMT also has variousdescriptors relating to the multiplexed data. The descriptors haveinformation such as copy control information showing whether copying ofthe multiplexed data is permitted or not. The PCR stores STC timeinformation corresponding to an ATS showing when the PCR packet istransferred to a decoder, in order to achieve synchronization between anArrival Time Clock (ATC) that is a time axis of ATSs, and an System TimeClock (STC) that is a time axis of PTSs and DTSs.

FIG. 26 illustrates the data structure of the PMT in detail. A PMTheader is disposed at the top of the PMT. The PMT header describes thelength of data included in the PMT and others. A plurality ofdescriptors relating to the multiplexed data is disposed after the PMTheader. Information such as the copy control information is described inthe descriptors. After the descriptors, a plurality of pieces of streaminformation relating to the streams included in the multiplexed data isdisposed. Each piece of stream information includes stream descriptorseach describing information, such as a stream type for identifying acompression codec of a stream, a stream PID, and stream attributeinformation (such as a frame rate or an aspect ratio). The streamdescriptors are equal in number to the number of streams in themultiplexed data. The stream descriptors are equal in number to thenumber of streams in the multiplexed data.

When the multiplexed data is recorded on a recording medium and others,it is recorded together with multiplexed data information files.

Each of the multiplexed data information files is management informationof the multiplexed data as shown in FIG. 27. The multiplexed datainformation files are in one to one correspondence with the multiplexeddata, and each of the files includes multiplexed data information,stream attribute information, and an entry map.

As illustrated in FIG. 27, the multiplexed data information includes asystem rate, a reproduction start time, and a reproduction end time. Thesystem rate indicates the maximum transfer rate at which a system targetdecoder to be described later transfers the multiplexed data to a PIDfilter. The intervals of the ATSs included in the multiplexed data areset to not higher than a system rate. The reproduction start timeindicates a PTS in a video frame at the head of the multiplexed data. Aninterval of one frame is added to a PTS in a video frame at the end ofthe multiplexed data, and the PTS is set to the reproduction end time.

As shown in FIG. 28, a piece of attribute information is registered inthe stream attribute information, for each PID of each stream includedin the multiplexed data. Each piece of attribute information hasdifferent information depending on whether the corresponding stream is avideo stream, an audio stream, a presentation graphics stream, or aninteractive graphics stream. Each piece of video stream attributeinformation carries information including what kind of compression codecis used for compressing the video stream, and the resolution, aspectratio and frame rate of the pieces of picture data that is included inthe video stream. Each piece of audio stream attribute informationcarries information including what kind of compression codec is used forcompressing the audio stream, how many channels are included in theaudio stream, which language the audio stream supports, and how high thesampling frequency is. The video stream attribute information and theaudio stream attribute information are used for initialization of adecoder before the player plays back the information.

In the present embodiment, the multiplexed data to be used is of astream type included in the PMT. Furthermore, when the multiplexed datais recorded on a recording medium, the video stream attributeinformation included in the multiplexed data information is used. Morespecifically, the moving picture coding method or the moving picturecoding apparatus described in each of embodiments includes a step or aunit for allocating unique information indicating video data generatedby the moving picture coding method or the moving picture codingapparatus in each of embodiments, to the stream type included in the PMTor the video stream attribute information. With the configuration, thevideo data generated by the moving picture coding method or the movingpicture coding apparatus described in each of embodiments can bedistinguished from video data that conforms to another standard.

Furthermore, FIG. 29 illustrates steps of the moving picture decodingmethod according to the present embodiment. In Step exS100, the streamtype included in the PMT or the video stream attribute informationincluded in the multiplexed data information is obtained from themultiplexed data. Next, in Step exS101, it is determined whether or notthe stream type or the video stream attribute information indicates thatthe multiplexed data is generated by the moving picture coding method orthe moving picture coding apparatus in each of embodiments. When it isdetermined that the stream type or the video stream attributeinformation indicates that the multiplexed data is generated by themoving picture coding method or the moving picture coding apparatus ineach of embodiments, in Step exS102, decoding is performed by the movingpicture decoding method in each of embodiments. Furthermore, when thestream type or the video stream attribute information indicatesconformance to the conventional standards, such as MPEG-2, MPEG-4 AVC,and VC-1, in Step exS103, decoding is performed by a moving picturedecoding method in conformity with the conventional standards.

As such, allocating a new unique value to the stream type or the videostream attribute information enables determination whether or not themoving picture decoding method or the moving picture decoding apparatusthat is described in each of embodiments can perform decoding. Even whenmultiplexed data that conforms to a different standard is input, anappropriate decoding method or apparatus can be selected. Thus, itbecomes possible to decode information without any error. Furthermore,the moving picture coding method or apparatus, or the moving picturedecoding method or apparatus in the present embodiment can be used inthe devices and systems described above.

Embodiment 5

Each of the moving picture coding method, the moving picture codingapparatus, the moving picture decoding method, and the moving picturedecoding apparatus in each of embodiments is typically achieved in theform of an integrated circuit or a Large Scale Integrated (LSI) circuit.As an example of the LSI, FIG. 30 illustrates a configuration of the LSIex500 that is made into one chip. The LSI ex500 includes elements ex501,ex502, ex503, ex504, ex505, ex506, ex507, ex508, and ex509 to bedescribed below, and the elements are connected to each other through abus ex510. The power supply circuit unit ex505 is activated by supplyingeach of the elements with power when the power supply circuit unit ex505is turned on.

For example, when coding is performed, the LSI ex500 receives an AVsignal from a microphone ex117, a camera ex113, and others through an AVIO ex509 under control of a control unit ex501 including a CPU ex502, amemory controller ex503, a stream controller ex504, and a drivingfrequency control unit ex512. The received AV signal is temporarilystored in an external memory ex511, such as an SDRAM. Under control ofthe control unit ex501, the stored data is segmented into data portionsaccording to the processing amount and speed to be transmitted to asignal processing unit ex507. Then, the signal processing unit ex507codes an audio signal and/or a video signal. Here, the coding of thevideo signal is the coding described in each of embodiments.Furthermore, the signal processing unit ex507 sometimes multiplexes thecoded audio data and the coded video data, and a stream IO ex506provides the multiplexed data outside. The provided multiplexed data istransmitted to the base station ex107, or written on the recordingmedium ex215. When data sets are multiplexed, the data should betemporarily stored in the buffer ex508 so that the data sets aresynchronized with each other.

Although the memory ex511 is an element outside the LSI ex500, it may beincluded in the LSI ex500. The buffer ex508 is not limited to onebuffer, but may be composed of buffers. Furthermore, the LSI ex500 maybe made into one chip or a plurality of chips.

Furthermore, although the control unit ex501 includes the CPU ex502, thememory controller ex503, the stream controller ex504, the drivingfrequency control unit ex512, the configuration of the control unitex501 is not limited to such. For example, the signal processing unitex507 may further include a CPU. Inclusion of another CPU in the signalprocessing unit ex507 can improve the processing speed. Furthermore, asanother example, the CPU ex502 may serve as or be a part of the signalprocessing unit ex507, and, for example, may include an audio signalprocessing unit. In such a case, the control unit ex501 includes thesignal processing unit ex507 or the CPU ex502 including a part of thesignal processing unit ex507.

The name used here is LSI, but it may also be called IC, system LSI,super LSI, or ultra LSI depending on the degree of integration.

Moreover, ways to achieve integration are not limited to the LSI, and aspecial circuit or a general purpose processor and so forth can alsoachieve the integration. Field Programmable Gate Array (FPGA) that canbe programmed after manufacturing LSIs or a reconfigurable processorthat allows re-configuration of the connection or configuration of anLSI can be used for the same purpose. Such a programmable logic devicecan typically execute the moving picture coding method and/or the movingpicture decoding method according to any of the above embodiments, byloading or reading from a memory or the like one or more programs thatare included in software or firmware.

In the future, with advancement in semiconductor technology, a brand-newtechnology may replace LSI. The functional blocks can be integratedusing such a technology. The possibility is that the present disclosureis applied to biotechnology.

Embodiment 6

When video data generated in the moving picture coding method or by themoving picture coding apparatus described in each of embodiments isdecoded, compared to when video data that conforms to a conventionalstandard, such as MPEG-2, MPEG-4 AVC, and VC-1 is decoded, theprocessing amount probably increases. Thus, the LSI ex500 needs to beset to a driving frequency higher than that of the CPU ex502 to be usedwhen video data in conformity with the conventional standard is decoded.However, when the driving frequency is set higher, there is a problemthat the power consumption increases.

In order to solve the problem, the moving picture decoding apparatus,such as the television ex300 and the LSI ex500 is configured todetermine to which standard the video data conforms, and switch betweenthe driving frequencies according to the determined standard. FIG. 31illustrates a configuration ex800 in the present embodiment. A drivingfrequency switching unit ex803 sets a driving frequency to a higherdriving frequency when video data is generated by the moving picturecoding method or the moving picture coding apparatus described in eachof embodiments. Then, the driving frequency switching unit ex803instructs a decoding processing unit ex801 that executes the movingpicture decoding method described in each of embodiments to decode thevideo data. When the video data conforms to the conventional standard,the driving frequency switching unit ex803 sets a driving frequency to alower driving frequency than that of the video data generated by themoving picture coding method or the moving picture coding apparatusdescribed in each of embodiments. Then, the driving frequency switchingunit ex803 instructs the decoding processing unit ex802 that conforms tothe conventional standard to decode the video data.

More specifically, the driving frequency switching unit ex803 includesthe CPU ex502 and the driving frequency control unit ex512 in FIG. 30.Here, each of the decoding processing unit ex801 that executes themoving picture decoding method described in each of embodiments and thedecoding processing unit ex802 that conforms to the conventionalstandard corresponds to the signal processing unit ex507 in FIG. 30. TheCPU ex502 determines to which standard the video data conforms. Then,the driving frequency control unit ex512 determines a driving frequencybased on a signal from the CPU ex502. Furthermore, the signal processingunit ex507 decodes the video data based on the signal from the CPUex502. For example, the identification information described inEmbodiment 4 is probably used for identifying the video data. Theidentification information is not limited to the one described inEmbodiment 4 but may be any information as long as the informationindicates to which standard the video data conforms. For example, whenwhich standard video data conforms to can be determined based on anexternal signal for determining that the video data is used for atelevision or a disk, etc., the determination may be made based on suchan external signal. Furthermore, the CPU ex502 selects a drivingfrequency based on, for example, a look-up table in which the standardsof the video data are associated with the driving frequencies as shownin FIG. 33. The driving frequency can be selected by storing the look-uptable in the buffer ex508 and in an internal memory of an LSI, and withreference to the look-up table by the CPU ex502.

FIG. 32 illustrates steps for executing a method in the presentembodiment. First, in Step exS200, the signal processing unit ex507obtains identification information from the multiplexed data. Next, inStep exS201, the CPU ex502 determines whether or not the video data isgenerated by the coding method and the coding apparatus described ineach of embodiments, based on the identification information. When thevideo data is generated by the moving picture coding method and themoving picture coding apparatus described in each of embodiments, inStep exS202, the CPU ex502 transmits a signal for setting the drivingfrequency to a higher driving frequency to the driving frequency controlunit ex512. Then, the driving frequency control unit ex512 sets thedriving frequency to the higher driving frequency. On the other hand,when the identification information indicates that the video dataconforms to the conventional standard, such as MPEG-2, MPEG-4 AVC, andVC-1, in Step exS203, the CPU ex502 transmits a signal for setting thedriving frequency to a lower driving frequency to the driving frequencycontrol unit ex512. Then, the driving frequency control unit ex512 setsthe driving frequency to the lower driving frequency than that in thecase where the video data is generated by the moving picture codingmethod and the moving picture coding apparatus described in each ofembodiment.

Furthermore, along with the switching of the driving frequencies, thepower conservation effect can be improved by changing the voltage to beapplied to the LSI ex500 or an apparatus including the LSI ex500. Forexample, when the driving frequency is set lower, the voltage to beapplied to the LSI ex500 or the apparatus including the LSI ex500 isprobably set to a voltage lower than that in the case where the drivingfrequency is set higher.

Furthermore, when the processing amount for decoding is larger, thedriving frequency may be set higher, and when the processing amount fordecoding is smaller, the driving frequency may be set lower as themethod for setting the driving frequency. Thus, the setting method isnot limited to the ones described above. For example, when theprocessing amount for decoding video data in conformity with MPEG-4 AVCis larger than the processing amount for decoding video data generatedby the moving picture coding method and the moving picture codingapparatus described in each of embodiments, the driving frequency isprobably set in reverse order to the setting described above.

Furthermore, the method for setting the driving frequency is not limitedto the method for setting the driving frequency lower. For example, whenthe identification information indicates that the video data isgenerated by the moving picture coding method and the moving picturecoding apparatus described in each of embodiments, the voltage to beapplied to the LSI ex500 or the apparatus including the LSI ex500 isprobably set higher. When the identification information indicates thatthe video data conforms to the conventional standard, such as MPEG-2,MPEG-4 AVC, and VC-1, the voltage to be applied to the LSI ex500 or theapparatus including the LSI ex500 is probably set lower. As anotherexample, when the identification information indicates that the videodata is generated by the moving picture coding method and the movingpicture coding apparatus described in each of embodiments, the drivingof the CPU ex502 does not probably have to be suspended. When theidentification information indicates that the video data conforms to theconventional standard, such as MPEG-2, MPEG-4 AVC, and VC-1, the drivingof the CPU ex502 is probably suspended at a given time because the CPUex502 has extra processing capacity. Even when the identificationinformation indicates that the video data is generated by the movingpicture coding method and the moving picture coding apparatus describedin each of embodiments, in the case where the CPU ex502 has extraprocessing capacity, the driving of the CPU ex502 is probably suspendedat a given time. In such a case, the suspending time is probably setshorter than that in the case where when the identification informationindicates that the video data conforms to the conventional standard,such as MPEG-2, MPEG-4 AVC, and VC-1.

Accordingly, the power conservation effect can be improved by switchingbetween the driving frequencies in accordance with the standard to whichthe video data conforms. Furthermore, when the LSI ex500 or theapparatus including the LSI ex500 is driven using a battery, the batterylife can be extended with the power conservation effect.

Embodiment 7

There are cases where a plurality of video data that conforms todifferent standards, is provided to the devices and systems, such as atelevision and a cellular phone. In order to enable decoding theplurality of video data that conforms to the different standards, thesignal processing unit ex507 of the LSI ex500 needs to conform to thedifferent standards. However, the problems of increase in the scale ofthe circuit of the LSI ex500 and increase in the cost arise with theindividual use of the signal processing units ex507 that conform to therespective standards.

In order to solve the problem, what is conceived is a configuration inwhich the decoding processing unit for implementing the moving picturedecoding method described in each of embodiments and the decodingprocessing unit that conforms to the conventional standard, such asMPEG-2, MPEG-4 AVC, and VC-1 are partly shared. Ex900 in FIG. 34A showsan example of the configuration. For example, the moving picturedecoding method described in each of embodiments and the moving picturedecoding method that conforms to MPEG-4 AVC have, partly in common, thedetails of processing, such as entropy coding, inverse quantization,deblocking filtering, and motion compensated prediction. The details ofprocessing to be shared probably include use of a decoding processingunit ex902 that conforms to MPEG-4 AVC. In contrast, a dedicateddecoding processing unit ex901 is probably used for other processingunique to an aspect of the present disclosure. The decoding processingunit for implementing the moving picture decoding method described ineach of embodiments may be shared for the processing to be shared, and adedicated decoding processing unit may be used for processing unique tothat of MPEG-4 AVC.

Furthermore, ex1000 in FIG. 34B shows another example in that processingis partly shared. This example uses a configuration including adedicated decoding processing unit ex1001 that supports the processingunique to an aspect of the present disclosure, a dedicated decodingprocessing unit ex1002 that supports the processing unique to anotherconventional standard, and a decoding processing unit ex1003 thatsupports processing to be shared between the moving picture decodingmethod according to the aspect of the present disclosure and theconventional moving picture decoding method. Here, the dedicateddecoding processing units ex1001 and ex1002 are not necessarilyspecialized for the processing according to the aspect of the presentdisclosure and the processing of the conventional standard,respectively, and may be the ones capable of implementing generalprocessing. Furthermore, the configuration of the present embodiment canbe implemented by the LSI ex500.

As such, reducing the scale of the circuit of an LSI and reducing thecost are possible by sharing the decoding processing unit for theprocessing to be shared between the moving picture decoding methodaccording to the aspect of the present disclosure and the moving picturedecoding method in conformity with the conventional standard.

Although only some exemplary embodiments have been described above, thescope of the Claims of the present application is not limited to theseembodiments. Those skilled in the art will readily appreciate thatvarious modifications may be made in these exemplary embodiments andthat other embodiments may be obtained by arbitrarily combining theconstituent elements of the embodiments without materially departingfrom the novel teachings and advantages of the subject matter recited inthe appended Claims. Accordingly, all such modifications and otherembodiments are included in the present disclosure.

INDUSTRIAL APPLICABILITY

An image coding method and an image decoding method according to oneaspect of the present disclosure is applicable to, for example,television receivers, digital video recorders, car navigation systems,mobile phones, digital cameras, and digital video cameras.

The invention claimed is:
 1. An image coding method of coding, on aper-block basis, to generate a bitstream including a coded image, theimage coding method comprising: a first performing of arithmetic codingon a current block to be coded; a first determining of determiningwhether or not the current block is at an end of a slice; a secondperforming of setting an end-of-slice flag to a predetermined value of1, when it is determined that the current block is at the end of theslice; a third performing of performing arithmetic coding termination asfirst termination when the end-of-slice flag indicates the predeterminedvalue of 1; a second determining of determining whether or not thecurrent block is at an end of a sub-stream when it is determined thatthe current block is not at the end of the slice, the sub-stream being astructural unit of the image that is different from the slice; a fourthperforming of setting a sub-last bit to a predetermined value of 1, whenit is determined that the current block is at the end of the sub-stream;a fifth performing of performing arithmetic coding termination, assecond termination, which is triggered by the sub-last bit indicatingthe predetermined value of 1; and searching a beginning of a next substream, wherein, the second termination is same processing as the firsttermination, and wherein the first performing, the second performing,the first determining, the second determining, the fourth performing,and the fifth performing are repeatedly performed until the thirdperforming is performed.